|
@@ -34,6 +34,12 @@ window.App.boot = function() {
|
|
|
new Vue({ el: '#content'});
|
|
|
}
|
|
|
|
|
|
+window.addEventListener("load", () => {
|
|
|
+ if ("serviceWorker" in navigator) {
|
|
|
+ navigator.serviceWorker.register("/sw.js");
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
window.App.util = {
|
|
|
compose: {
|
|
|
post: (function() {
|
|
@@ -230,4 +236,4 @@ window.App.util = {
|
|
|
.attr('width', 34).attr('height', 34);
|
|
|
})
|
|
|
|
|
|
-};
|
|
|
+};
|