aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/js
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2020-03-03 17:59:17 +0100
committerJohannes Zellner <johannes@cloudron.io>2020-03-03 17:59:17 +0100
commit2d28c88dd7a6765a6d2ed54758bbb4c3da999331 (patch)
tree32e7b6f58bc1bdd54aa9b5be6fe8cfb0649bc34c /frontend/js
parent313dfe99cf8f763b36f333c5072e2430a6b7941f (diff)
downloadSurfer-2d28c88dd7a6765a6d2ed54758bbb4c3da999331.tar.gz
Surfer-2d28c88dd7a6765a6d2ed54758bbb4c3da999331.tar.zst
Surfer-2d28c88dd7a6765a6d2ed54758bbb4c3da999331.zip
Carry over public.html fixes to index.html
Diffstat (limited to 'frontend/js')
-rw-r--r--frontend/js/app.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/frontend/js/app.js b/frontend/js/app.js
index 9ce073e..f532bc1 100644
--- a/frontend/js/app.js
+++ b/frontend/js/app.js
@@ -150,7 +150,15 @@ function open(row, column, event) {
150 app.activeEntry.fullPath = encode(sanitize(app.path + '/' + row.filePath)); 150 app.activeEntry.fullPath = encode(sanitize(app.path + '/' + row.filePath));
151 app.previewDrawerVisible = true 151 app.previewDrawerVisible = true
152 152
153 // window.open(encode(path)); 153 // need to wait for DOM element to exist
154 setTimeout(function () {
155 $('iframe').on('load', function (e) {
156 if (!e.target.contentWindow.document.body) return;
157
158 e.target.contentWindow.document.body.style.display = 'flex'
159 e.target.contentWindow.document.body.style.justifyContent = 'center'
160 });
161 }, 0);
154} 162}
155 163
156function uploadFiles(files) { 164function uploadFiles(files) {