fcl-base: ReloadEnvironmentStrings: check window

This commit is contained in:
mattias 2022-05-12 10:57:30 +02:00
parent 6a1e0ca5dc
commit 1575dd7eeb

View File

@ -59,6 +59,8 @@ var
S,N : String;
A,P : TStringDynArray;
begin
if not jsvalue(Window) then exit;
if not jsvalue(Window.location) then exit;
if Assigned(EnvNames) then
FreeAndNil(EnvNames);
EnvNames:=TJSObject.new;