mirror of
https://codeberg.org/ashley/poke
synced 2025-04-05 09:07:59 +00:00
Link service worker on main pages
This commit is contained in:
parent
92709cca8d
commit
e4e3ee6aa1
@ -93,3 +93,9 @@ a {
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('service-worker.js');
|
||||
}
|
||||
</script>
|
@ -1417,3 +1417,8 @@ document.getElementById('search').addEventListener('keyup', function () {
|
||||
|
||||
<% } catch (error) { %>
|
||||
<% } %>
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('service-worker.js');
|
||||
}
|
||||
</script>
|
@ -109,3 +109,8 @@ body {
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('service-worker.js');
|
||||
}
|
||||
</script>
|
@ -3131,3 +3131,9 @@ 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 New Issue
Block a user