aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/src
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-08-13 17:54:47 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-08-13 17:54:47 +0200
commitea021df9fa5e91006a4dabdb330f780c7e1e12cf (patch)
tree634a4c55db904dde477b46e0b5e5b5034631f538 /apps/theming/src
parent3e409fd34208afb69b270076e1f503c10101650a (diff)
downloadnextcloud-server-ea021df9fa5e91006a4dabdb330f780c7e1e12cf.tar.gz
nextcloud-server-ea021df9fa5e91006a4dabdb330f780c7e1e12cf.zip
chore(deps): Update `@nextcloud/auth` to v2.4.0 and use `getCSPNonce` where possible
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/theming/src')
-rw-r--r--apps/theming/src/admin-settings.js4
-rw-r--r--apps/theming/src/personal-settings.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/theming/src/admin-settings.js b/apps/theming/src/admin-settings.js
index d6165ee7453..622837658f9 100644
--- a/apps/theming/src/admin-settings.js
+++ b/apps/theming/src/admin-settings.js
@@ -2,13 +2,13 @@
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-import { getRequestToken } from '@nextcloud/auth'
+import { getCSPNonce } from '@nextcloud/auth'
import Vue from 'vue'
import App from './AdminTheming.vue'
// eslint-disable-next-line camelcase
-__webpack_nonce__ = btoa(getRequestToken())
+__webpack_nonce__ = getCSPNonce()
Vue.prototype.OC = OC
Vue.prototype.t = t
diff --git a/apps/theming/src/personal-settings.js b/apps/theming/src/personal-settings.js
index 15190358c36..bbee88e3804 100644
--- a/apps/theming/src/personal-settings.js
+++ b/apps/theming/src/personal-settings.js
@@ -2,14 +2,14 @@
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-import { getRequestToken } from '@nextcloud/auth'
+import { getCSPNonce } from '@nextcloud/auth'
import Vue from 'vue'
import { refreshStyles } from './helpers/refreshStyles.js'
import App from './UserTheming.vue'
// eslint-disable-next-line camelcase
-__webpack_nonce__ = btoa(getRequestToken())
+__webpack_nonce__ = getCSPNonce()
Vue.prototype.OC = OC
Vue.prototype.t = t