aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/unsupported-browser-redirect.js
blob: 64620afa0854a8b4ec40f20c5b5df4cdda46ef40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

import { getCSPNonce } from '@nextcloud/auth'

// eslint-disable-next-line camelcase
__webpack_nonce__ = getCSPNonce()

if (!window.TESTING && !OC?.config?.no_unsupported_browser_warning) {
	window.addEventListener('DOMContentLoaded', async function() {
		const { testSupportedBrowser } = await import('./utils/RedirectUnsupportedBrowsers.js')
		testSupportedBrowser()
	})
}