force-navigator
force-navigator copied to clipboard
use URL class to get the host instead of regex parsing
this effectively avoids this error:
Uncaught (in promise) TypeError: Cannot read properties of null (reading '1') serviceWorker.js:1 (anonymous function)