aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/unsupported-browser-redirect.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/unsupported-browser-redirect.js b/core/src/unsupported-browser-redirect.js
index 5ea64221a04..3ecf0b4dbe7 100644
--- a/core/src/unsupported-browser-redirect.js
+++ b/core/src/unsupported-browser-redirect.js
@@ -19,8 +19,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-import { testSupportedBrowser } from './utils/RedirectUnsupportedBrowsers.js'
-
if (!window.TESTING && !OC?.config?.no_unsupported_browser_warning) {
- testSupportedBrowser()
+ window.addEventListener('DOMContentLoaded', async function() {
+ const { testSupportedBrowser } = await import('./utils/RedirectUnsupportedBrowsers.js')
+ testSupportedBrowser()
+ })
}