1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-02-02 19:58:10 +00:00

Reduce the external files required for gem installation

This commit is contained in:
Cotes Chung
2021-04-19 15:01:07 +08:00
parent 72e8ffafa6
commit a9acaa669d
6 changed files with 5 additions and 2 deletions

9
assets/js/pwa/app.js Normal file
View File

@@ -0,0 +1,9 @@
---
layout: compress
permalink: '/app.js'
---
/* Registering Service Worker */
if('serviceWorker' in navigator) {
navigator.serviceWorker.register('{{ "/sw.js" | relative_url }}');
};