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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html11
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'