bugfixing, obs interface
[ppt-control.git] / settings.js
index eb94f8ef49af8fc44b19e8917cd88a6ae06bb4ad..901af0b5934e2536e5876fdfaf863126267b20b1 100644 (file)
@@ -25,16 +25,17 @@ function getCookie(cname) {
 }
 
 function saveSettings() {
+    console.log("Saving settings")
     settingsString = JSON.stringify({showcurrent: show_current.checked, shownext: show_next.checked, enable_shortcuts: shortcuts.checked});
     setCookie(COOKIENAME, settingsString, COOKIEEXP);
 }
 
 function initSettings() {
     if (getCookie(COOKIENAME) == 0) {
-               if (window.obssstudio) {
-                       shortcuts.checked = False;
-                       show_current.checked = False;
-               }
+        if (window.obssstudio) {
+                shortcuts.checked = False;
+                show_current.checked = False;
+        }
         saveSettings()
     } else {
         cookie = JSON.parse(getCookie(COOKIENAME));