mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying fix for serviceworker
This commit is contained in:
@@ -779,7 +779,7 @@ hide mdi-action-visibility mdi-action-visibility-off
|
||||
|
||||
.mega{
|
||||
padding: 6% 0px;
|
||||
height: 100%;
|
||||
/* height: 100%; */
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
background-color:#191919;
|
||||
@@ -1538,6 +1538,10 @@ nav ul li:hover, nav ul li.active {
|
||||
background-color: rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.change_user_pass:hover {
|
||||
background-color: initial;
|
||||
}
|
||||
|
||||
.list-image, .list-suggested-image{
|
||||
width: 34%;
|
||||
height: 100%;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
<span class="right-span">Yes</span>
|
||||
</label></div></li>
|
||||
<li class="change_user_pass hide">
|
||||
<a href="#!" class="change_user_pass_btn btn waves-effect">Change password</a>
|
||||
<a href="#!" class="change_user_pass_btn btn waves-effect blue">Change password</a>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var version = 'v3.6';
|
||||
var version = 'v3.7';
|
||||
var CACHE_FILES = [
|
||||
'/assets/html/offline.html',
|
||||
'/assets/manifest.json',
|
||||
@@ -40,7 +40,8 @@ self.addEventListener('fetch', event => {
|
||||
(event.request.headers.get('accept').includes('*/*') &&
|
||||
(event.request.url.includes('localhost') || event.request.url.includes('zoff.no') || event.request.url.includes('zoff.me')))))) {
|
||||
event.respondWith(
|
||||
fetch(event.request.url).catch(error => {
|
||||
fetch(event.request.url, {redirect: 'manual'}).catch(error => {
|
||||
console.log(error);
|
||||
if(event.request.url.includes('manifest.json')){
|
||||
return caches.open(version + "::zoff").then(function(cache) {
|
||||
return cache.match("/assets/manifest.json");
|
||||
|
||||
Reference in New Issue
Block a user