Browse Source

Make snow off-by-default due to lag

pull/67/head
discomrade 1 year ago
parent
commit
8c8083ba61
  1. 11
      js/winter-snow.js

11
js/winter-snow.js

@ -1,6 +1,11 @@
// hacky enabling of snowstorm, probably a better way
$(document).ready(function(){
var snow = localStorage['snow'] ? false : true;
var snow = localStorage['snow'] ? true : false;
// delete previous value if "false"; this used to be on-by-default
if (snow && localStorage.snow == false) {
delete localStorage.snow;
snow = false;
}
if (window.Options && Options.get_tab('general')) {
selector = '#add-snow>input';
@ -12,9 +17,9 @@ $(document).ready(function(){
.on(event, function() {
snow = !snow;
if (snow) {
delete localStorage.snow;
localStorage.snow = true;
} else {
localStorage.snow = false;
delete localStorage.snow;
}
});
if (snow) {

Loading…
Cancel
Save