mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 21:47:47 +02:00
fcl-base: ReloadEnvironmentStrings: check window
This commit is contained in:
parent
6a1e0ca5dc
commit
1575dd7eeb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user