Open eryue0220 opened 2 months ago
While calling navigator.serviceWorker.register in Child App, it will cause an error and make the whole app down. On the other hand, the location.origin in child app's code will change to the main's
navigator.serviceWorker.register
location.origin
https://github.com/eryue0220/qiankun-test-demo
Steps to reproduce the behavior:
qiankun-test-demo
cd main && npm i && npm start
cd child && npm i && npm start
http://localhost:3000
Expected behavior
What happens?
While calling
navigator.serviceWorker.register
in Child App, it will cause an error and make the whole app down. On the other hand, thelocation.origin
in child app's code will change to the main'sMini Showcase Repository(REQUIRED)
https://github.com/eryue0220/qiankun-test-demo
How To Reproduce
Steps to reproduce the behavior:
qiankun-test-demo
cd main && npm i && npm start
to start main appcd child && npm i && npm start
to start child apphttp://localhost:3000
in browserExpected behavior
navigator.serviceWorker.register
API in child app will not cause an error;Context