Compare commits

..

No commits in common. "d048360c110e18562304888498a2fc4e936efe8d" and "6b30769d968dd0ca24ed1393304a83c0cbddb532" have entirely different histories.

3 changed files with 9 additions and 20 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "1.3.29"
current_version = "1.3.28"
commit = true
tag = true
tag_name = "{new_version}"

View File

@ -1 +1 @@
1.3.29
1.3.28

View File

@ -35,11 +35,6 @@
<a class="nav-link" href="/urls">URLs</a>
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item">
<button id="enable-notifications" class="btn btn-outline-light">Enable Notifications</button>
</li>
</ul>
</div>
</nav>
@ -60,19 +55,13 @@
{% block scripts %}{% endblock %}
<script>
if ('serviceWorker' in navigator && 'PushManager' in window) {
let swRegistration = null;
navigator.serviceWorker.register('{{ url_for("static", filename="service-worker.js") }}').then(function(registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
swRegistration = registration;
}, function(err) {
console.log('ServiceWorker registration failed: ', err);
});
const enableNotificationsButton = document.getElementById('enable-notifications');
enableNotificationsButton.addEventListener('click', function() {
if (swRegistration) {
askPermission(swRegistration);
}
window.addEventListener('load', function() {
navigator.serviceWorker.register('{{ url_for("static", filename="service-worker.js") }}').then(function(registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
askPermission(registration);
}, function(err) {
console.log('ServiceWorker registration failed: ', err);
});
});
}