diff options
author | Phie <phie@phie.ovh> | 2020-11-05 01:40:23 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2020-11-05 01:40:23 +0300 |
commit | 6a3c5734089ab944eca64157d5f354ed5f88a359 (patch) | |
tree | 3a5e35e22b01e0bf15b4f5c3cbf90e138b30fd29 | |
parent | 3a0d8e3e6bf8f0953d90d0da2f3bb4898ec61bed (diff) |
start loading before fadein
-rw-r--r-- | browsers/browser.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/browsers/browser.js b/browsers/browser.js index f30b40f..6bc9909 100644 --- a/browsers/browser.js +++ b/browsers/browser.js @@ -97,13 +97,14 @@ function onPrepared(error, data, notePath, action) { else { console.log("reuse old iframe"); $("#editor-container").show() + if (compatibility.isElectron) { + writerFrame.send('loadnote', notePath); + writerFrame.send('action', action); + } + else + writerFrame.contentWindow.loadPath(notePath, action); $(loadingView).fadeIn(function () { - if (compatibility.isElectron) { - writerFrame.send('loadnote', notePath); - writerFrame.send('action', action); - } - else - writerFrame.contentWindow.loadPath(notePath, action); + writerFrame.style.display = "inline-flex" }) |