From ca373318302755d95622c325a08d146495f18c14 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Tue, 31 Jan 2023 21:57:00 +0100 Subject: [PATCH] remove warning for removed crypto.subtle dependency --- public/scripts/network.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/public/scripts/network.js b/public/scripts/network.js index ca116df..9ab02d3 100644 --- a/public/scripts/network.js +++ b/public/scripts/network.js @@ -1,10 +1,6 @@ window.URL = window.URL || window.webkitURL; window.isRtcSupported = !!(window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection); -if (!crypto.subtle && localStorage.getItem('unsecure_warning') !== 'received') { - // Warn once per session - alert("PairDrops functionality to compare received with requested files works in secure contexts only (https or localhost).") - localStorage.setItem('unsecure_warning', 'received') -} + class ServerConnection { constructor() {