diff options
-rw-r--r-- | index.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/index.html b/index.html index 88da39dfb..508eed98a 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,16 @@ <body> <div id="app"></div> <script> - OC = { webroot: '/OC_WEBROOT' } + // mock some required objects + function t(app, string) { + return string + } + OC = { + webroot: '/OC_WEBROOT', + isUserAdmin() { + return true + } + } </script> <script type="module"> import { RichTextReader, AttachmentResolver, ATTACHMENT_RESOLVER } from './src/package.js' |