We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a5a4b commit 0c79bd3Copy full SHA for 0c79bd3
web/control.js
@@ -5,6 +5,7 @@
5
//
6
INIT_FUNCTIONS = [
7
load_config,
8
+ init_ssl_warning,
9
init_rellinks,
10
init_soundfiles,
11
init_audio,
web/util.js
@@ -40,8 +40,10 @@ async function load_config () {
40
41
42
// If this is SSL, show the warning
43
-if (window.location.protocol === 'https:') {
44
- forEach('.ssl-warning', x => {x.style.display = 'block'});
+async function init_ssl_warning () {
+ if (window.location.protocol === 'https:') {
45
+ forEach('.ssl-warning', x => {x.style.display = 'block'});
46
+ }
47
}
48
49
0 commit comments