mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Backward compatibility of uncompressed state
This commit is contained in:
parent
0947d5c89e
commit
e3716b0f38
@ -1450,7 +1450,13 @@ window.onpopstate = function(event) {
|
||||
if (window.location.hash) {
|
||||
try {
|
||||
let search_query_, customized_;
|
||||
({host, user, queries, params, search_query_, customized_} = JSON.parse(LZString.decompressFromEncodedURIComponent(window.location.hash.substring(1))));
|
||||
try {
|
||||
({host, user, queries, params, search_query_, customized_} = JSON.parse(LZString.decompressFromEncodedURIComponent(window.location.hash.substring(1))));
|
||||
} catch {
|
||||
// For compatibility with uncompressed state
|
||||
({host, user, queries, params, search_query_, customized_} = JSON.parse(atob(window.location.hash.substring(1))));
|
||||
}
|
||||
|
||||
// For compatibility with old URLs' hashes
|
||||
search_query = search_query_ !== undefined ? search_query_ : search_query;
|
||||
customized = customized_ !== undefined ? customized_ : true;
|
||||
|
Loading…
Reference in New Issue
Block a user