Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-12-10 10:51:21 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-12-10 10:51:21 +0300
commitf9ac77f41c6328e3b381943a1bf215bcc362053e (patch)
tree798db07e9e2c0cc2cb48a4c2410ae86af4eaffea /src
parent42024d21866b5fbb3b3644d0bfb81b17d2e605c9 (diff)
Remove undeeded scripts
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/main.js4
1 files changed, 3 insertions, 1 deletions
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)
})