diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-08-26 16:47:36 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-08-26 16:50:21 +0200 |
commit | 4a558dbb369f8a34ae92167a5fa775bbce534909 (patch) | |
tree | d6ff00d1c897c989b5199aadda8be415d8880cfe /apps | |
parent | ea090a30ada8028cfcdf8b8065d6ab7aa0f43a0c (diff) | |
download | nextcloud-server-4a558dbb369f8a34ae92167a5fa775bbce534909.tar.gz nextcloud-server-4a558dbb369f8a34ae92167a5fa775bbce534909.zip |
fix(theming): Add `__webpack_nounce__` to support async chunks like the filepicker
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/src/admin-settings.js | 4 | ||||
-rw-r--r-- | apps/theming/src/personal-settings.js | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/apps/theming/src/admin-settings.js b/apps/theming/src/admin-settings.js index 9fce526c463..5fd606eec27 100644 --- a/apps/theming/src/admin-settings.js +++ b/apps/theming/src/admin-settings.js @@ -23,6 +23,10 @@ import Vue from 'vue' import App from './AdminTheming.vue' import { refreshStyles } from './helpers/refreshStyles.js' +import { getRequestToken } from '@nextcloud/auth' + +// eslint-disable-next-line camelcase +__webpack_nonce__ = btoa(getRequestToken()) 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 97f5e75e27a..0eed784e068 100644 --- a/apps/theming/src/personal-settings.js +++ b/apps/theming/src/personal-settings.js @@ -23,6 +23,10 @@ import Vue from 'vue' import App from './UserThemes.vue' import { refreshStyles } from './helpers/refreshStyles.js' +import { getRequestToken } from '@nextcloud/auth' + +// eslint-disable-next-line camelcase +__webpack_nonce__ = btoa(getRequestToken()) Vue.prototype.OC = OC Vue.prototype.t = t |