mirror of
https://github.com/tcsenpai/Zundler.git
synced 2025-06-07 03:55:26 +00:00
Check for existence of global_context before access
This commit is contained in:
parent
6f7ea071ff
commit
77fc23ea00
@ -17,6 +17,7 @@ var myGet = function (arg) {
|
|||||||
const originalResult = originalGet.apply(this, [arg]);
|
const originalResult = originalGet.apply(this, [arg]);
|
||||||
// If searchtools.js of sphinx is used
|
// If searchtools.js of sphinx is used
|
||||||
if (
|
if (
|
||||||
|
window.global_context &&
|
||||||
window.global_context.get_parameters &&
|
window.global_context.get_parameters &&
|
||||||
(window.location.search === "") &&
|
(window.location.search === "") &&
|
||||||
(Array.from(this.entries()).length == 0)
|
(Array.from(this.entries()).length == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user