aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/main.ts')
-rw-r--r--apps/files/src/main.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/files/src/main.ts b/apps/files/src/main.ts
index cac0cf25b6d..7f3f2fe78f5 100644
--- a/apps/files/src/main.ts
+++ b/apps/files/src/main.ts
@@ -2,9 +2,9 @@
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-import { PiniaVuePlugin } from 'pinia'
+import { getCSPNonce } from '@nextcloud/auth'
import { getNavigation } from '@nextcloud/files'
-import { getRequestToken } from '@nextcloud/auth'
+import { PiniaVuePlugin } from 'pinia'
import Vue from 'vue'
import { pinia } from './store/index.ts'
@@ -14,8 +14,7 @@ import SettingsModel from './models/Setting.js'
import SettingsService from './services/Settings.js'
import FilesApp from './FilesApp.vue'
-// @ts-expect-error __webpack_nonce__ is injected by webpack
-__webpack_nonce__ = btoa(getRequestToken())
+__webpack_nonce__ = getCSPNonce()
declare global {
interface Window {