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> </SyntaxOptions>
</Parsing> </Parsing>
<CodeGeneration> <CodeGeneration>
<TargetOS Value="browser"/> <TargetOS Value="nodejs"/>
</CodeGeneration> </CodeGeneration>
<Linking> <Linking>
<Debugging> <Debugging>

View File

@ -3,10 +3,10 @@ program ServiceWorker;
{$mode objfpc} {$mode objfpc}
uses uses
Classes, ServiceWorkerApp; SysUtils, Classes, ServiceWorkerApp;
const 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. // The cache is specific to your domain, so no need to include your app name.
type type