Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Fix/service worker registration (#40)
Browse files Browse the repository at this point in the history
* fix: service worker registration

* chore: bump web version

* chore: bump libs

* chore: update audit excludes
  • Loading branch information
jkoenig134 authored Mar 28, 2023
1 parent 7ea876c commit a08ecd1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ npm run lint:prettier

# auditing
npm exec --workspaces -- npx license-check
npx better-npm-audit audit --exclude 1080920
npx better-npm-audit audit --exclude 1091459
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"typedoc": "^0.23.24",
"typedoc-plugin-markdown": "^3.14.0",
"typescript": "^4.9.4",
"webpack": "^5.75.0",
"webpack": "^5.76.3",
"webpack-cli": "^5.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@js-soft/native-web",
"version": "1.2.4",
"version": "1.2.5",
"description": "Native Web",
"homepage": "https://github.com/js-soft/ts-native-access#readme",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/WebBootstrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class WebBootstrapper implements INativeBootstrapper {
throw new Error(NativeErrorCodes.BOOTSTRAP_ALREADY_INITIALIZED);
}

const serviceWorker: ServiceWorkerRegistration = await navigator.serviceWorker.register("./resources/jss.native-webWebServiceWorker.js");
const serviceWorker: ServiceWorkerRegistration = await navigator.serviceWorker.register("./resources/jss.native-web/WebServiceWorker.js");
this.nativeEventBus = new CommonEventBus();
await this.nativeEventBus.init();

Expand Down

0 comments on commit a08ecd1

Please sign in to comment.