mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:26 -04:00
implement code suggestions
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
a3da03bee9
commit
1da00bade3
8 changed files with 19 additions and 16 deletions
|
@ -211,7 +211,10 @@ window.helpers = window.helpers || {
|
|||
helpers.storage.remove(key);
|
||||
}
|
||||
},
|
||||
set: function (key, value) { localStorage.setItem(key, encodeURIComponent(JSON.stringify(value))); },
|
||||
set: function (key, value) {
|
||||
let encoded_value = encodeURIComponent(JSON.stringify(value))
|
||||
localStorage.setItem(key, encoded_value);
|
||||
},
|
||||
remove: function (key) { localStorage.removeItem(key); }
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue