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

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNightHawk32 <nighthawk2244@gmail.com>2015-11-20 01:13:10 +0300
committerNightHawk32 <nighthawk2244@gmail.com>2015-11-20 01:13:10 +0300
commit77deaa9af3208360806b7e7976cd70189c26a0c2 (patch)
treeb396573a64064df0a51c274c48a370fdfae4c83d /main.js
parent1eaf63145d35271f05e9fecc26f839b3b0d2930c (diff)
Now saving the state of the log window.
Diffstat (limited to 'main.js')
-rw-r--r--main.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.js b/main.js
index 29613a01..98005eeb 100644
--- a/main.js
+++ b/main.js
@@ -42,6 +42,13 @@ $(document).ready(function () {
console.log('Application version expired');
GUI.log('You are using an old version of ' + chrome.runtime.getManifest().name + '. There may be a more recent version with improvements and fixes.');
}
+
+ chrome.storage.local.get('logopen', function (result) {
+ if (result.logopen) {
+ $("#showlog").trigger('click');
+ }
+ });
+
// log webgl capability
// it would seem the webgl "enabling" through advanced settings will be ignored in the future
@@ -370,6 +377,7 @@ $("#showlog").on('click', function() {
$("#content").removeClass('logopen');
$(".tab_container").removeClass('logopen');
$("#scrollicon").removeClass('active');
+ chrome.storage.local.set({'logopen': false});
state = false;
}else{
@@ -378,6 +386,7 @@ $("#showlog").on('click', function() {
$("#content").addClass('logopen');
$(".tab_container").addClass('logopen');
$("#scrollicon").addClass('active');
+ chrome.storage.local.set({'logopen': true});
state = true;
}