demo: serviceworker: nodejs

This commit is contained in:
mattias 2022-05-12 12:36:45 +02:00
parent 4c991bb050
commit 471de6cfc8
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<TargetOS Value="browser"/>
<TargetOS Value="nodejs"/>
</CodeGeneration>
<Linking>
<Debugging>

View File

@ -3,10 +3,10 @@ program ServiceWorker;
{$mode objfpc}
uses
Classes, ServiceWorkerApp;
SysUtils, Classes, ServiceWorkerApp;
const
YourCacheName = 'v6'; // usually increased with every version
YourCacheName = 'v7'; // usually increased with every version
// The cache is specific to your domain, so no need to include your app name.
type