diff options
author | Maxim Devaev <[email protected]> | 2024-03-17 10:46:26 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-03-17 10:46:26 +0200 |
commit | af68aba4b745f10a3e2aed64dc3aa66807cc94cc (patch) | |
tree | 597be39cd8869b988b88c2e24d60d6a2416a7fa7 /web/share/js/tools.js | |
parent | 13b43355ca131e333b1a326817161ec68b67df6a (diff) |
Issue #1076: Orientation options for H.264
Diffstat (limited to 'web/share/js/tools.js')
-rw-r--r-- | web/share/js/tools.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js index ef21b69f..12291e48 100644 --- a/web/share/js/tools.js +++ b/web/share/js/tools.js @@ -392,6 +392,9 @@ export var tools = new function() { }, "set": (key, value) => window.localStorage.setItem(key, value), + "getInt": (key, default_value) => parseInt(self.storage.get(key, default_value)), + "setInt": (key, value) => self.storage.set(key, value), + "getBool": (key, default_value) => !!parseInt(self.storage.get(key, (default_value ? "1" : "0"))), "setBool": (key, value) => self.storage.set(key, (value ? "1" : "0")), |