mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-22 23:20:54 +08:00
Merge branch 'dev'
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user