mirror of https://github.com/nextcloud/photos
Remove undeeded scripts
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
42024d2186
commit
f9ac77f41c
|
@ -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');
|
||||
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue