try again
This commit is contained in:
parent
719f646e14
commit
9fc960a758
|
@ -26,7 +26,9 @@ type Config = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export function register(config?: Config) {
|
export function register(config?: Config) {
|
||||||
if (process.env.NODE_ENV === "production" && "serviceWorker" in navigator) {
|
if (
|
||||||
|
/* process.env.NODE_ENV === "production" */ "serviceWorker" in navigator
|
||||||
|
) {
|
||||||
// The URL constructor is available in all browsers that support SW.
|
// The URL constructor is available in all browsers that support SW.
|
||||||
const publicUrl = new URL(
|
const publicUrl = new URL(
|
||||||
"https://dictionary.lingdocs.com",
|
"https://dictionary.lingdocs.com",
|
||||||
|
|
Loading…
Reference in New Issue