mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed callback code to reflect search also
This commit is contained in:
@@ -46,7 +46,12 @@ window.addEventListener("load", function() {
|
|||||||
//console.log(url);
|
//console.log(url);
|
||||||
window.location.href = url;
|
window.location.href = url;
|
||||||
} else {
|
} else {
|
||||||
var query_parameters = getQueryHash(window.location.hash);
|
var query_parameters;
|
||||||
|
if(window.location.search.length > 0) {
|
||||||
|
query_parameters = getQueryHash(window.location.search);
|
||||||
|
} else {
|
||||||
|
query_parameters = getQueryHash(window.location.hash);
|
||||||
|
}
|
||||||
window.opener.callback(query_parameters);
|
window.opener.callback(query_parameters);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user