Add SSL user options so the page can be plain HTTP
This commit is contained in:
parent
beae68d1c2
commit
020ceecd40
11 changed files with 63 additions and 71 deletions
|
|
@ -454,3 +454,16 @@ $("#sitefooter").load("footer.html");
|
|||
$(":input:not(textarea)").keypress(function(ev) {
|
||||
return ev.keyCode != 13;
|
||||
});
|
||||
|
||||
if (location.protocol === "https:") {
|
||||
var title = "Warning";
|
||||
var text = "You connected to this page via HTTPS. Due to browser "+
|
||||
"security policy, certain media players may throw warnings,"+
|
||||
" while others may not work at all due to only being "+
|
||||
"available over plain HTTP.<br>To encrypt your websocket "+
|
||||
"traffic and API calls (logins, account management, etc) "+
|
||||
"while loading this page over plain HTTP, enable the SSL "+
|
||||
"option from the Options menu.";
|
||||
makeAlert(title, text, "alert-warning")
|
||||
.appendTo($("#announcements"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue