Fixing txhash url change
This commit is contained in:
parent
55ea4a4f2a
commit
3efb4da2e7
@ -790,13 +790,11 @@
|
|||||||
|
|
||||||
var hashvalue = location.hash.slice(1);
|
var hashvalue = location.hash.slice(1);
|
||||||
if(hashvalue==''){
|
if(hashvalue==''){
|
||||||
debugger;
|
|
||||||
render("homepage");
|
render("homepage");
|
||||||
history.pushState(appState, null, '');
|
history.pushState(appState, null, '');
|
||||||
getAllSuggestions();
|
getAllSuggestions();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
debugger;
|
|
||||||
await getAllSuggestions();
|
await getAllSuggestions();
|
||||||
categoriseText(hashvalue);
|
categoriseText(hashvalue);
|
||||||
}
|
}
|
||||||
@ -832,7 +830,7 @@
|
|||||||
page: "transaction_page",
|
page: "transaction_page",
|
||||||
thisField: e.target.closest(".transaction").id,
|
thisField: e.target.closest(".transaction").id,
|
||||||
};
|
};
|
||||||
history.pushState(appState, null, `#${e.target.textContent}`)
|
history.pushState(appState, null, `#${appState.thisField}`)
|
||||||
}
|
}
|
||||||
if (e.target.closest(".block-height") && prevField !== e.target.textContent) {
|
if (e.target.closest(".block-height") && prevField !== e.target.textContent) {
|
||||||
render("block_page", e.target.textContent);
|
render("block_page", e.target.textContent);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user