mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-26 06:08:39 +01:00
Link service worker on main pages
This commit is contained in:
parent
92709cca8d
commit
e4e3ee6aa1
6 changed files with 36 additions and 6 deletions
|
@ -92,4 +92,10 @@ a {
|
|||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('service-worker.js');
|
||||
}
|
||||
</script>
|
|
@ -1416,4 +1416,9 @@ document.getElementById('search').addEventListener('keyup', function () {
|
|||
</html>
|
||||
|
||||
<% } catch (error) { %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('service-worker.js');
|
||||
}
|
||||
</script>
|
|
@ -108,4 +108,9 @@ body {
|
|||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('service-worker.js');
|
||||
}
|
||||
</script>
|
|
@ -3130,4 +3130,10 @@ window.addEventListener('load', () => {
|
|||
|
||||
<% } catch (error) { %>
|
||||
<%- error %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('service-worker.js');
|
||||
}
|
||||
</script>
|
|
@ -469,4 +469,8 @@ Web
|
|||
|
||||
</body>
|
||||
|
||||
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('service-worker.js');
|
||||
}
|
||||
</script>
|
|
@ -578,4 +578,8 @@ font-weight: 1000;
|
|||
|
||||
</body>
|
||||
|
||||
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('service-worker.js');
|
||||
}
|
||||
</script>
|
Loading…
Reference in a new issue