Remove logs of service worker
This commit is contained in:
parent
fa5887de67
commit
45f2fba980
@ -42,8 +42,6 @@ self.addEventListener('fetch', function (event) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
function update(request) {
|
function update(request) {
|
||||||
console.log(request);
|
|
||||||
console.log(caches.match(request));
|
|
||||||
return caches.match(request).then(
|
return caches.match(request).then(
|
||||||
function (response) {
|
function (response) {
|
||||||
if (response) {
|
if (response) {
|
||||||
@ -61,7 +59,6 @@ self.addEventListener('fetch', function (event) {
|
|||||||
|
|
||||||
function refresh(response) {
|
function refresh(response) {
|
||||||
if(response){
|
if(response){
|
||||||
console.log("refresh");
|
|
||||||
return self.clients.matchAll().then(function (clients) {
|
return self.clients.matchAll().then(function (clients) {
|
||||||
clients.forEach(function (client) {
|
clients.forEach(function (client) {
|
||||||
var message = {
|
var message = {
|
||||||
|
Loading…
Reference in New Issue
Block a user