I am not sure why it was expressed so convoluted before? Found that in https://github.com/orgs/PrivateBin/discussions/1657
@@ -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;