1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2025-06-09 02:33:02 -04:00

Link service worker on main pages

This commit is contained in:
Korbs 2023-12-15 00:09:10 -05:00
parent 92709cca8d
commit e4e3ee6aa1
6 changed files with 36 additions and 6 deletions

View file

@ -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>