Skip to content

Commit

Permalink
Change manifest and serviceworker paths to relative, fix packing script.
Browse files Browse the repository at this point in the history
  • Loading branch information
FiratUsta committed Mar 8, 2024
1 parent e8dd665 commit b4815d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pack
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rm dist/Chromora-light.zip
echo -e "Packing new builds..."
cd src
cp ../LICENSE LICENSE
zip -r ../dist/Chromora.zip app assets classes data modules index.html style.css app.js LICENSE
zip -r ../dist/Chromora.zip assets classes data modules index.html style.css app.js manifest.json serviceWorker.js LICENSE
zip -r ../dist/Chromora-light.zip assets classes data modules index.html style.css app.js LICENSE
rm LICENSE
cd ..
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if ("serviceWorker" in navigator) {
registration.update();
};
});
navigator.serviceWorker.register("serviceWorker.js");
navigator.serviceWorker.register("./serviceWorker.js");
};

class App{
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" media="print" href="style.css"/>
<!-- APP SUPPORT -->
<link rel="manifest" href="manifest.json"/>
<link rel="manifest" href="./manifest.json"/>
<link rel="shortcut icon" href="assets/logo.svg" type="image/x-icon">
<link rel="apple-touch-icon" href="assets/logo.svg"/>
<meta name="apple-mobile-web-app-status-bar" content="#F5F5F5"/>
Expand Down

0 comments on commit b4815d1

Please sign in to comment.