* Patch from Thierry Gayet, caches is only available in web worker

This commit is contained in:
Michaël Van Canneyt 2024-03-26 17:35:03 +01:00
parent 1f050292f9
commit fbad08559d

View File

@ -8,6 +8,7 @@ unit JOB_Browser;
{$ENDIF}
{$mode objfpc}
{$modeswitch externalclass}
interface
@ -114,7 +115,9 @@ begin
RegisterGlobalObject(document,'document');
RegisterGlobalObject(window,'window');
RegisterGlobalObject(console,'console');
{$IFDEF WORKER}
RegisterGlobalObject(caches,'caches');
{$ENDIF}
RegisterGlobalObject(TJSObject,'Object');
RegisterGlobalObject(TJSFunction,'Function');
RegisterGlobalObject(TJSDate,'Date');