diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2019-12-11 11:50:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-11 11:50:26 +0300 |
commit | 8bf352b0934c99c0ee45f3b0e2e5d13b7085c55f (patch) | |
tree | 450ae76e2dde43654cdc5aef0f300e695ec4ac23 | |
parent | 742eaadcc6129d704c428e0974eb562f09b0490a (diff) | |
parent | f9ac77f41c6328e3b381943a1bf215bcc362053e (diff) |
Remove undeeded scripts (#37)v18.0.0beta2
Remove undeeded scripts
-rw-r--r-- | lib/Controller/PageController.php | 3 | ||||
-rw-r--r-- | src/main.js | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 212bc564..fe09175e 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -74,9 +74,6 @@ class PageController extends Controller { $this->initialStateService->provideInitialState($this->appName, 'maps', $this->config->getAppValue('maps', 'enabled', 'no') === 'yes'); - // used by the sidebar to parse files requests - // TODO: move to a standalone dav fileinfo parser - Util::addScript('files', 'files/client'); Util::addScript($this->appName, 'photos'); Util::addStyle($this->appName, 'icons'); diff --git a/src/main.js b/src/main.js index 301632ed..f8dddeb3 100644 --- a/src/main.js +++ b/src/main.js @@ -47,11 +47,13 @@ Vue.prototype.t = translate Vue.prototype.n = translatePlural // TODO: remove when we have a proper fileinfo standalone library +// original scripts are loaded from +// https://github.com/nextcloud/server/blob/5bf3d1bb384da56adbf205752be8f840aac3b0c5/lib/private/legacy/template.php#L120-L122 window.addEventListener('DOMContentLoaded', () => { - // register unused client for the sidebar to have access to its parser methods if (!window.OCA.Files) { window.OCA.Files = {} } + // register unused client for the sidebar to have access to its parser methods Object.assign(window.OCA.Files, { App: { fileList: { filesClient: OC.Files.getClient() } } }, window.OCA.Files) }) |