Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | b18fd046f0 | |
Derrick Hammer | b73e6b3b31 | |
Derrick Hammer | 6e1e244f0e |
|
@ -1,3 +1,10 @@
|
|||
# [0.1.0-develop.63](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.62...v0.1.0-develop.63) (2023-09-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* remove checking the method for kernel -> sw messages ([6e1e244](https://git.lumeweb.com/LumeWeb/libkernel/commit/6e1e244f0e7ad607f8fd249fe38b8dbe1a6def51))
|
||||
|
||||
# [0.1.0-develop.62](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.61...v0.1.0-develop.62) (2023-09-11)
|
||||
|
||||
# [0.1.0-develop.61](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.60...v0.1.0-develop.61) (2023-09-11)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libkernel",
|
||||
"version": "0.1.0-develop.62",
|
||||
"version": "0.1.0-develop.63",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libkernel",
|
||||
"version": "0.1.0-develop.62",
|
||||
"version": "0.1.0-develop.63",
|
||||
"dependencies": {
|
||||
"@lumeweb/libweb": "0.2.0-develop.58",
|
||||
"emittery": "^1.0.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libkernel",
|
||||
"version": "0.1.0-develop.62",
|
||||
"version": "0.1.0-develop.63",
|
||||
"main": "lib/index.js",
|
||||
"type": "module",
|
||||
"types": "lib/index.d.ts",
|
||||
|
|
|
@ -136,17 +136,10 @@ function handleMessage(event: MessageEvent) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (event.source === kernelIframe?.contentWindow) {
|
||||
if (
|
||||
["response", "queryUpdate", "responseNonce", "responseUpdate"].includes(
|
||||
event.data.method,
|
||||
) &&
|
||||
event.data.sw
|
||||
) {
|
||||
delete event.data.sw;
|
||||
serviceWorker?.postMessage(event.data);
|
||||
return;
|
||||
}
|
||||
if (event.source === kernelIframe?.contentWindow && event.data.sw) {
|
||||
delete event.data.sw;
|
||||
serviceWorker?.postMessage(event.data);
|
||||
return;
|
||||
}
|
||||
if (FROM_SW) {
|
||||
if (["moduleCall", "queryUpdate", "response"].includes(event.data.method)) {
|
||||
|
|
Loading…
Reference in New Issue