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>2018-10-28 15:44:15 +0300
committerPhie <phie@phie.ovh>2018-10-28 15:44:15 +0300
commit1a513132a0f9a5caf19d51ef2e058e11cfbff866 (patch)
treece3d42ca971c79ff92ce11b1053d01c3a29856cf /settings
parentadbb9f68989a4dbccf6f23a2966830a33f9e68e8 (diff)
fix first run on electron
Diffstat (limited to 'settings')
-rw-r--r--settings/settings_helper.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/settings_helper.js b/settings/settings_helper.js
index bc3dcbb..086cee7 100644
--- a/settings/settings_helper.js
+++ b/settings/settings_helper.js
@@ -40,4 +40,12 @@ SettingsHelper.prototype.setAppUid = function (uid) {
SettingsHelper.prototype.getAppUid = function () {
return String(store.get("appuid"));
}
+
+SettingsHelper.prototype.isFirstRun = function () {
+ var first = store.get("first_launch")
+ if (first == null)
+ store.set("first_launch", false)
+ return first == null
+}
+
exports.SettingsHelper = SettingsHelper; \ No newline at end of file