mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
commit
4f2eb712ad
5 changed files with 68 additions and 1 deletions
BIN
public/js/app.js
vendored
BIN
public/js/app.js
vendored
Binary file not shown.
Binary file not shown.
61
public/offline.html
Normal file
61
public/offline.html
Normal file
File diff suppressed because one or more lines are too long
BIN
public/sw.js
vendored
Normal file
BIN
public/sw.js
vendored
Normal file
Binary file not shown.
6
resources/assets/js/app.js
vendored
6
resources/assets/js/app.js
vendored
|
@ -34,6 +34,12 @@ window.App.boot = function() {
|
||||||
new Vue({ el: '#content'});
|
new Vue({ el: '#content'});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.addEventListener("load", () => {
|
||||||
|
if ("serviceWorker" in navigator) {
|
||||||
|
navigator.serviceWorker.register("/sw.js");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
window.App.util = {
|
window.App.util = {
|
||||||
compose: {
|
compose: {
|
||||||
post: (function() {
|
post: (function() {
|
||||||
|
|
Loading…
Reference in a new issue