Track hidden tabs in localStorage

This commit is contained in:
Nick O'Leary
2021-08-31 15:19:04 +01:00
parent ed8e7afdf6
commit 7026df7d96
2 changed files with 25 additions and 1 deletions

View File

@@ -220,6 +220,16 @@ RED.settings = (function () {
return defaultValue;
}
}
function getLocal(key) {
return localStorage.getItem(key)
}
function setLocal(key, value) {
localStorage.setItem(key, value);
}
function removeLocal(key) {
localStorage.removeItem(key)
}
return {
init: init,
@@ -228,6 +238,9 @@ RED.settings = (function () {
set: set,
get: get,
remove: remove,
theme: theme
theme: theme,
setLocal: setLocal,
getLocal: getLocal,
removeLocal: removeLocal
}
})();