Check for existence of global_context before access

This commit is contained in:
Adrian Vollmer 2024-04-03 19:53:52 +02:00
parent 6f7ea071ff
commit 77fc23ea00

View File

@ -17,6 +17,7 @@ var myGet = function (arg) {
const originalResult = originalGet.apply(this, [arg]);
// If searchtools.js of sphinx is used
if (
window.global_context &&
window.global_context.get_parameters &&
(window.location.search === "") &&
(Array.from(this.entries()).length == 0)