Now saving the state of the log window.

10.3.x-maintenance
NightHawk32 2015-11-19 17:13:10 -05:00
parent 1eaf63145d
commit 77deaa9af3
1 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,13 @@ $(document).ready(function () {
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
// and webgl will be supported if gpu supports it by default (canary 40.0.2175.0), keep an eye on this one
@ -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;
}