mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-27 09:29:10 +00:00
clean up some styling
This commit is contained in:
parent
3580941207
commit
d95f0036ac
@ -44,9 +44,7 @@ function initFormHandler() {
|
|||||||
const registerServiceWorker = async () => {
|
const registerServiceWorker = async () => {
|
||||||
if ("serviceWorker" in navigator) {
|
if ("serviceWorker" in navigator) {
|
||||||
try {
|
try {
|
||||||
const registration = await navigator.serviceWorker.register("./sw.js", {
|
const registration = await navigator.serviceWorker.register("./sw.js", {scope: "./"});
|
||||||
scope: "./",
|
|
||||||
});
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Registration failed with ${error}`);
|
console.error(`Registration failed with ${error}`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user