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

github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2020-11-05 01:40:23 +0300
committerPhie <phie@phie.ovh>2020-11-05 01:40:23 +0300
commit6a3c5734089ab944eca64157d5f354ed5f88a359 (patch)
tree3a5e35e22b01e0bf15b4f5c3cbf90e138b30fd29
parent3a0d8e3e6bf8f0953d90d0da2f3bb4898ec61bed (diff)
start loading before fadein
-rw-r--r--browsers/browser.js13
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"
})