mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 11:21:30 +00:00
bring back hash functions
This commit is contained in:
17
js/tt-rss.js
17
js/tt-rss.js
@@ -70,20 +70,13 @@ require(["dojo/_base/kernel",
|
|||||||
|
|
||||||
/* exported hash_get */
|
/* exported hash_get */
|
||||||
function hash_get(key) {
|
function hash_get(key) {
|
||||||
console.warn("FIXME: hash_get", key);
|
const obj = dojo.queryToObject(window.location.hash.substring(1));
|
||||||
|
return obj[key];
|
||||||
//const kv = window.location.hash.substring(1).toQueryParams();
|
|
||||||
//return kv[key];
|
|
||||||
console.warn("FIXME: hash_get", key);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* exported hash_set */
|
/* exported hash_set */
|
||||||
function hash_set(key, value) {
|
function hash_set(key, value) {
|
||||||
console.warn("FIXME: hash_set", key, value);
|
const obj = dojo.queryToObject(window.location.hash.substring(1));
|
||||||
|
obj[key] = value;
|
||||||
/*const kv = window.location.hash.substring(1).toQueryParams();
|
window.location.hash = dojo.objectToQuery(obj);
|
||||||
kv[key] = value;
|
|
||||||
window.location.hash = $H(kv).toQueryString();*/
|
|
||||||
|
|
||||||
console.warn("FIXME: hash_set", key);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user