}
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));