diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2019-11-13 12:05:10 +0000 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-19 11:55:33 +0100 |
commit | ec01e0a790448fff38364f629a4de4edb5d465bf (patch) | |
tree | 8fb5369e3d6f9f805025802e12feaa4dfaef1e03 /core/src/OCP/loader.js | |
parent | 5d9fd7ba0cced84f1d07627b0860ac5490de164d (diff) | |
download | nextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.tar.gz nextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.zip |
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0.
- [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases)
- [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0)
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/OCP/loader.js')
-rw-r--r-- | core/src/OCP/loader.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/src/OCP/loader.js b/core/src/OCP/loader.js index 7f72c47ca64..293af9bbec2 100644 --- a/core/src/OCP/loader.js +++ b/core/src/OCP/loader.js @@ -20,8 +20,8 @@ * */ -let loadedScripts = {} -let loadedStylesheets = {} +const loadedScripts = {} +const loadedStylesheets = {} /** * @namespace OCP * @class Loader @@ -42,8 +42,8 @@ export default { } loadedScripts[key] = true return new Promise(function(resolve, reject) { - var scriptPath = OC.filePath(app, 'js', file) - var script = document.createElement('script') + const scriptPath = OC.filePath(app, 'js', file) + const script = document.createElement('script') script.src = scriptPath script.setAttribute('nonce', btoa(OC.requestToken)) script.onload = () => resolve() @@ -66,8 +66,8 @@ export default { } loadedStylesheets[key] = true return new Promise(function(resolve, reject) { - var stylePath = OC.filePath(app, 'css', file) - var link = document.createElement('link') + const stylePath = OC.filePath(app, 'css', file) + const link = document.createElement('link') link.href = stylePath link.type = 'text/css' link.rel = 'stylesheet' @@ -75,5 +75,5 @@ export default { link.onerror = () => reject(new Error(`Failed to load stylesheet from ${stylePath}`)) document.head.appendChild(link) }) - } + }, } |