aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/main.ts')
-rw-r--r--apps/files_sharing/src/main.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/src/main.ts b/apps/files_sharing/src/main.ts
index 040dd2e17ad..8462d5b542e 100644
--- a/apps/files_sharing/src/main.ts
+++ b/apps/files_sharing/src/main.ts
@@ -22,6 +22,10 @@
*/
// register default shares types
+if (!window.OC) {
+ window.OC = {}
+}
+
Object.assign(window.OC, {
Share: {
SHARE_TYPE_USER: 0,