1
0
mirror of https://github.com/RobinLinus/snapdrop.git synced 2025-05-16 07:30:12 -07:00

Update service-worker.js

This commit is contained in:
RobinLinus 2019-03-13 20:36:44 +01:00
parent 43f9c5e77a
commit 9f754dab93
2 changed files with 2 additions and 1 deletions

View File

@ -178,6 +178,7 @@ class PeerUI {
}
_onTouchEnd(e) {
if(!this._touchStart) return;
if (Date.now() - this._touchStart < 500) {
clearTimeout(this._touchTimer);
} else { // this was a long tap

View File

@ -22,7 +22,7 @@ self.addEventListener('install', function(event) {
self.addEventListener('fetch', function(event) {
if (event.request.method !== 'POST') return;
event.respondWith(Response.redirect('./'));
// event.respondWith(Response.redirect('./'));
event.waitUntil(async function() {
const data = await event.request.formData();