From 119bf4cf779e796789127a9e3370a5362e3669d9 Mon Sep 17 00:00:00 2001 From: Tag Date: Sat, 1 Oct 2022 15:53:00 -0700 Subject: [PATCH] Fixed lookups not working unless stats window had been opened at least once --- package.nw/lib/gt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.nw/lib/gt.js b/package.nw/lib/gt.js index 878788f9..45b8fe08 100644 --- a/package.nw/lib/gt.js +++ b/package.nw/lib/gt.js @@ -8632,7 +8632,7 @@ function lookupValidateCallByElement(elementString) { if ( g_lookupWindowHandle != null && - typeof g_statsWindowHandle.window.validateCallByElement !== "undefined" + typeof g_lookupWindowHandle.window.validateCallByElement !== "undefined" ) { g_lookupWindowHandle.window.validateCallByElement(elementString); @@ -8642,7 +8642,7 @@ function lookupFocus(selection) { if ( g_lookupWindowHandle != null && - typeof g_statsWindowHandle.window.statsFocus !== "undefined" + typeof g_lookupWindowHandle.window.statsFocus !== "undefined" ) { g_lookupWindowHandle.window.statsFocus(selection);