-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate making wiki installable as a web-app #141
Milestone
Comments
SirLich
added
question
Further information is requested
JS/VUE
Issues pertaining to JS or VUE
labels
Jul 26, 2021
Making a PWA is pretty simple and shouldn't have any disadvantages. More info: Manifest: {
"name": "Bedrock Wiki",
"short_name": "Bedrock Wiki",
"theme_color": "#171717",
"background_color": "#262626",
"display": "standalone",
"scope": "/",
"start_url": "/",
"icons": [
{
"src": "./assets/images/homepage/wikilogo.png",
"sizes": "256x256",
"type": "image/png"
}
],
"splash_pages": null
} Service worker: self.addEventListener("install", event => {
console.log("Service worker installed");
});
self.addEventListener("activate", event => {
console.log("Service worker activated");
}); And then somewhere it will always be executed: if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register('sw.js?v=0.1');
} I could do a PR in the near future with everything needed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this possible with our setup? Any disadvantages?
The text was updated successfully, but these errors were encountered: