fix: service worker has redirections

This commit is contained in:
Miguel Ribeiro 2024-02-26 23:31:11 +01:00 committed by GitHub
parent 08aefde601
commit 4aca7bcb3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 2 additions and 10 deletions

View File

@ -33,7 +33,7 @@
<meta name="theme-color" content="<?= $theme == "light" ? "#FFFFFF" : "#222222" ?>"/> <meta name="theme-color" content="<?= $theme == "light" ? "#FFFFFF" : "#222222" ?>"/>
<link rel="icon" type="image/png" href="images/icon/favicon.ico" sizes="16x16"> <link rel="icon" type="image/png" href="images/icon/favicon.ico" sizes="16x16">
<link rel="apple-touch-icon" sizes="180x180" href="images/icon/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="images/icon/apple-touch-icon.png">
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json" crossorigin="use-credentials">
<link rel="stylesheet" href="styles/styles.css?<?= $version ?>"> <link rel="stylesheet" href="styles/styles.css?<?= $version ?>">
<link rel="stylesheet" href="styles/dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>> <link rel="stylesheet" href="styles/dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Barlow:300,400,500,600,700"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Barlow:300,400,500,600,700">

View File

@ -1,3 +1,3 @@
<?php <?php
$version = "v1.8.0"; $version = "v1.8.1";
?> ?>

View File

@ -83,7 +83,6 @@ if (isset($_POST['username']) && isset($_POST['password'])) {
<link rel="stylesheet" href="styles/login.css?<?= $version ?>"> <link rel="stylesheet" href="styles/login.css?<?= $version ?>">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Barlow:300,400,500,600,700"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Barlow:300,400,500,600,700">
<link rel="stylesheet" href="styles/login-dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>> <link rel="stylesheet" href="styles/login-dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>>
<script type="text/javascript" src="scripts/all.js?<?= $version ?>"></script>
</head> </head>
<body> <body>
<div class="content"> <div class="content">

View File

@ -99,7 +99,6 @@ if (isset($_POST['username'])) {
<link rel="stylesheet" href="styles/login-dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>> <link rel="stylesheet" href="styles/login-dark-theme.css?<?= $version ?>" id="dark-theme" <?= $theme == "light" ? "disabled" : "" ?>>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Barlow:300,400,500,600,700"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Barlow:300,400,500,600,700">
<script type="text/javascript" src="scripts/registration.js?<?= $version ?>"></script> <script type="text/javascript" src="scripts/registration.js?<?= $version ?>"></script>
<script type="text/javascript" src="scripts/all.js?<?= $version ?>"></script>
</head> </head>
<body> <body>
<div class="content"> <div class="content">

View File

@ -2,12 +2,6 @@ self.addEventListener('install', function(event) {
event.waitUntil( event.waitUntil(
caches.open('my-cache').then(function(cache) { caches.open('my-cache').then(function(cache) {
return cache.addAll([ return cache.addAll([
'.',
'index.php',
'stats.php',
'settings.php',
'about.php',
'endpoints/subscriptions/get.php',
'styles/styles.css', 'styles/styles.css',
'styles/dark-theme.css', 'styles/dark-theme.css',
'styles/login.css', 'styles/login.css',