diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-13 17:54:47 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-13 17:54:47 +0200 |
commit | ea021df9fa5e91006a4dabdb330f780c7e1e12cf (patch) | |
tree | 634a4c55db904dde477b46e0b5e5b5034631f538 /core/src/legacy-unified-search.js | |
parent | 3e409fd34208afb69b270076e1f503c10101650a (diff) | |
download | nextcloud-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 'core/src/legacy-unified-search.js')
-rw-r--r-- | core/src/legacy-unified-search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/legacy-unified-search.js b/core/src/legacy-unified-search.js index 7916908c04b..59ee462fbf5 100644 --- a/core/src/legacy-unified-search.js +++ b/core/src/legacy-unified-search.js @@ -4,14 +4,14 @@ */ import { getLoggerBuilder } from '@nextcloud/logger' -import { getRequestToken } from '@nextcloud/auth' +import { getCSPNonce } from '@nextcloud/auth' import { translate as t, translatePlural as n } from '@nextcloud/l10n' import Vue from 'vue' import UnifiedSearch from './views/LegacyUnifiedSearch.vue' // eslint-disable-next-line camelcase -__webpack_nonce__ = btoa(getRequestToken()) +__webpack_nonce__ = getCSPNonce() const logger = getLoggerBuilder() .setApp('unified-search') |