mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-03 17:49:19 +02:00
Make sure legacy check returns true only on HTTPS (not like ftp or whatever)
I am not sure why it was expressed so convoluted before? Found that in https://github.com/orgs/PrivateBin/discussions/1657
This commit is contained in:
parent
f03f2bf28d
commit
a0c0d3d37b
1 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,8 @@
|
||||||
return window.isSecureContext;
|
return window.isSecureContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTP is obviously insecure
|
// HTTPS is considered secure
|
||||||
if (window.location.protocol !== 'http:') {
|
if (window.location.protocol === 'https:') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue