remove warning for removed crypto.subtle dependency

This commit is contained in:
schlagmichdoch 2023-01-31 21:57:00 +01:00
parent a2d6832d12
commit ca37331830

View file

@ -1,10 +1,6 @@
window.URL = window.URL || window.webkitURL; window.URL = window.URL || window.webkitURL;
window.isRtcSupported = !!(window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection); 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 { class ServerConnection {
constructor() { constructor() {