Skip to content

Commit 296f166

Browse files
committed
search change
1 parent 2699bd6 commit 296f166

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

assets_js_lib_global_queries.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ function get_aws_icon_url(wallet_name, clas = "wallet_icon", ext = "png") {
910910
function visibility_change() {
911911
document.addEventListener("visibilitychange", () => {
912912
const is_request = (is_openrequest() === true),
913-
glob_search = glob_const.w_loc.search;
913+
glob_search = window?.location?.search;
914914
if (visible_tab()) { // to foreground
915915
if (glob_let.in_background) {
916916
glob_let.in_background = false;
@@ -920,6 +920,7 @@ function visibility_change() {
920920
search_change = search !== glob_search;
921921
console.log(glob_search);
922922
console.log(search);
923+
console.log("change");
923924
console.log(search_change);
924925
if (is_request) {
925926
if (search_change) {

0 commit comments

Comments
 (0)