mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-02 17:29:15 +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;
|
||||
}
|
||||
|
||||
// HTTP is obviously insecure
|
||||
if (window.location.protocol !== 'http:') {
|
||||
// HTTPS is considered secure
|
||||
if (window.location.protocol === 'https:') {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue