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:
authormax-nextcloud <max@nextcloud.com>2022-09-19 17:31:32 +0300
committerGitHub <noreply@github.com>2022-09-19 17:31:32 +0300
commit3d00039ba67a0bd38ee20d8ee6751825acd43862 (patch)
tree57b8f6df200ad795631db6ffeb98acd83490eed6
parent9ac6af62e9a6261ff55caacaec79fac20d6e26b1 (diff)
parent4afaf36f8a8e33c174ac34068756df05f8f6d7c2 (diff)
Merge pull request #2969 from nextcloud/fix/index_mock_objectsv25.0.0beta7
Mock some required objects in index.html
-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'