diff options
author | NightHawk32 <nighthawk2244@gmail.com> | 2015-11-20 01:13:10 +0300 |
---|---|---|
committer | NightHawk32 <nighthawk2244@gmail.com> | 2015-11-20 01:13:10 +0300 |
commit | 77deaa9af3208360806b7e7976cd70189c26a0c2 (patch) | |
tree | b396573a64064df0a51c274c48a370fdfae4c83d /main.js | |
parent | 1eaf63145d35271f05e9fecc26f839b3b0d2930c (diff) |
Now saving the state of the log window.
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; } |