diff --git a/configs.js b/configs.js index 03f2198..c5ed0ae 100644 --- a/configs.js +++ b/configs.js @@ -5,7 +5,7 @@ const configs = (function () { const enableLimit = false; // true or false const limit = 10; // integer - const modifyLocalStorage = true; // true or false + const modifyLocalStorage = false; // true or false const showOnlyStreamerTasks = false; // true or false // animation diff --git a/scripts/taskList.js b/scripts/taskList.js index 0ba1771..c937b54 100644 --- a/scripts/taskList.js +++ b/scripts/taskList.js @@ -978,6 +978,16 @@ function cancelAnimation() { // console.log("animation cancelled"); } +if (!settings.modifyLocalStorage) { + window.addEventListener( + "storage", + function () { + renderTaskListToDOM(); + }, + false + ); +} + (function () { setupDB(); importStyles();