Compare commits
	
		
			No commits in common. "d048360c110e18562304888498a2fc4e936efe8d" and "6b30769d968dd0ca24ed1393304a83c0cbddb532" have entirely different histories.
		
	
	
		
			d048360c11
			...
			6b30769d96
		
	
		
@ -1,5 +1,5 @@
 | 
				
			|||||||
[tool.bumpversion]
 | 
					[tool.bumpversion]
 | 
				
			||||||
current_version = "1.3.29"
 | 
					current_version = "1.3.28"
 | 
				
			||||||
commit = true
 | 
					commit = true
 | 
				
			||||||
tag = true
 | 
					tag = true
 | 
				
			||||||
tag_name = "{new_version}"
 | 
					tag_name = "{new_version}"
 | 
				
			||||||
 | 
				
			|||||||
@ -35,11 +35,6 @@
 | 
				
			|||||||
                    <a class="nav-link" href="/urls">URLs</a>
 | 
					                    <a class="nav-link" href="/urls">URLs</a>
 | 
				
			||||||
                </li>
 | 
					                </li>
 | 
				
			||||||
            </ul>
 | 
					            </ul>
 | 
				
			||||||
            <ul class="navbar-nav">
 | 
					 | 
				
			||||||
                <li class="nav-item">
 | 
					 | 
				
			||||||
                    <button id="enable-notifications" class="btn btn-outline-light">Enable Notifications</button>
 | 
					 | 
				
			||||||
                </li>
 | 
					 | 
				
			||||||
            </ul>
 | 
					 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </nav>
 | 
					    </nav>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -60,19 +55,13 @@
 | 
				
			|||||||
    {% block scripts %}{% endblock %}
 | 
					    {% block scripts %}{% endblock %}
 | 
				
			||||||
    <script>
 | 
					    <script>
 | 
				
			||||||
        if ('serviceWorker' in navigator && 'PushManager' in window) {
 | 
					        if ('serviceWorker' in navigator && 'PushManager' in window) {
 | 
				
			||||||
            let swRegistration = null;
 | 
					            window.addEventListener('load', function() {
 | 
				
			||||||
                navigator.serviceWorker.register('{{ url_for("static", filename="service-worker.js") }}').then(function(registration) {
 | 
					                navigator.serviceWorker.register('{{ url_for("static", filename="service-worker.js") }}').then(function(registration) {
 | 
				
			||||||
                    console.log('ServiceWorker registration successful with scope: ', registration.scope);
 | 
					                    console.log('ServiceWorker registration successful with scope: ', registration.scope);
 | 
				
			||||||
                swRegistration = registration;
 | 
					                    askPermission(registration);
 | 
				
			||||||
                }, function(err) {
 | 
					                }, function(err) {
 | 
				
			||||||
                    console.log('ServiceWorker registration failed: ', err);
 | 
					                    console.log('ServiceWorker registration failed: ', err);
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
 | 
					 | 
				
			||||||
            const enableNotificationsButton = document.getElementById('enable-notifications');
 | 
					 | 
				
			||||||
            enableNotificationsButton.addEventListener('click', function() {
 | 
					 | 
				
			||||||
                if (swRegistration) {
 | 
					 | 
				
			||||||
                    askPermission(swRegistration);
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user