@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.
- package/app.js +5 -1
- 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?
|