@nxtedition/lib 21.3.4 → 21.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app.js +5 -1
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -796,7 +796,11 @@ export function makeApp(appConfig, onTerminate) {
796
796
 
797
797
  if (serviceWorkerId) {
798
798
  inspectBC.onmessage = ({ data }) => {
799
- const { type } = data
799
+ const { type, id } = data
800
+
801
+ if (id !== serviceWorkerId) {
802
+ return
803
+ }
800
804
 
801
805
  if (type === 'inspect:open') {
802
806
  // TODO (fix): What happens if you call inspect:open multiple times?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "21.3.4",
3
+ "version": "21.3.5",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",