mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 06:35:55 +00:00
reduce overhead in hash set/get
This commit is contained in:
12
js/tt-rss.js
12
js/tt-rss.js
@@ -69,15 +69,3 @@ require(["dojo/_base/kernel",
|
||||
});
|
||||
});
|
||||
|
||||
/* exported hash_get */
|
||||
function hash_get(key) {
|
||||
const obj = dojo.queryToObject(window.location.hash.substring(1));
|
||||
return obj[key];
|
||||
}
|
||||
|
||||
/* exported hash_set */
|
||||
function hash_set(key, value) {
|
||||
const obj = dojo.queryToObject(window.location.hash.substring(1));
|
||||
obj[key] = value;
|
||||
window.location.hash = dojo.objectToQuery(obj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user