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

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'templates/editor.php')
-rw-r--r--templates/editor.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/editor.php b/templates/editor.php
index 17fac75..381c316 100644
--- a/templates/editor.php
+++ b/templates/editor.php
@@ -50,3 +50,10 @@
<?php } ?>
</div>
+
+<?php if (!empty($_["directToken"])) { ?>
+<script>
+ document.querySelector("meta[name='viewport']")
+ .setAttribute("content", "width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no");
+</script>
+<?php } ?>