Now saving the state of the log window.
parent
1eaf63145d
commit
77deaa9af3
9
main.js
9
main.js
|
@ -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.');
|
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
|
// log webgl capability
|
||||||
// it would seem the webgl "enabling" through advanced settings will be ignored in the future
|
// 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
|
// 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');
|
$("#content").removeClass('logopen');
|
||||||
$(".tab_container").removeClass('logopen');
|
$(".tab_container").removeClass('logopen');
|
||||||
$("#scrollicon").removeClass('active');
|
$("#scrollicon").removeClass('active');
|
||||||
|
chrome.storage.local.set({'logopen': false});
|
||||||
|
|
||||||
state = false;
|
state = false;
|
||||||
}else{
|
}else{
|
||||||
|
@ -378,6 +386,7 @@ $("#showlog").on('click', function() {
|
||||||
$("#content").addClass('logopen');
|
$("#content").addClass('logopen');
|
||||||
$(".tab_container").addClass('logopen');
|
$(".tab_container").addClass('logopen');
|
||||||
$("#scrollicon").addClass('active');
|
$("#scrollicon").addClass('active');
|
||||||
|
chrome.storage.local.set({'logopen': true});
|
||||||
|
|
||||||
state = true;
|
state = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue