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:
parent
43f9c5e77a
commit
9f754dab93
@ -178,6 +178,7 @@ class PeerUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onTouchEnd(e) {
|
_onTouchEnd(e) {
|
||||||
|
if(!this._touchStart) return;
|
||||||
if (Date.now() - this._touchStart < 500) {
|
if (Date.now() - this._touchStart < 500) {
|
||||||
clearTimeout(this._touchTimer);
|
clearTimeout(this._touchTimer);
|
||||||
} else { // this was a long tap
|
} else { // this was a long tap
|
||||||
|
@ -22,7 +22,7 @@ self.addEventListener('install', function(event) {
|
|||||||
self.addEventListener('fetch', function(event) {
|
self.addEventListener('fetch', function(event) {
|
||||||
if (event.request.method !== 'POST') return;
|
if (event.request.method !== 'POST') return;
|
||||||
|
|
||||||
event.respondWith(Response.redirect('./'));
|
// event.respondWith(Response.redirect('./'));
|
||||||
|
|
||||||
event.waitUntil(async function() {
|
event.waitUntil(async function() {
|
||||||
const data = await event.request.formData();
|
const data = await event.request.formData();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user