summaryrefslogtreecommitdiff
path: root/libs/music
diff options
context:
space:
mode:
Diffstat (limited to 'libs/music')
-rw-r--r--libs/music/player2
-rw-r--r--libs/music/player.d/main_static.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/libs/music/player b/libs/music/player
index ae89d67..3ec6f29 100644
--- a/libs/music/player
+++ b/libs/music/player
@@ -92,7 +92,7 @@ New experimental online player with visualization.
2015.11.7 1.0.0
The online player was added.
-->
-<body onload="init();">
+<body>
<div id="overlay"><span style="text-align:center;" id="overlaytext" class="TText">LOADING...</span></div>
<div id="helpoverlay" class="TText">
<pre class="TText" style="padding:2em;overflow:auto scroll;white-space:pre-wrap;">
diff --git a/libs/music/player.d/main_static.js b/libs/music/player.d/main_static.js
index 4e7b8f5..cf2e610 100644
--- a/libs/music/player.d/main_static.js
+++ b/libs/music/player.d/main_static.js
@@ -832,3 +832,4 @@ function init()
NSUI.vissel.value=sh.getcookie('playervisualization');
requestAnimationFrame(NSVisualization.updateVisualization);
}
+document.addEventListener("DOMContentLoaded", init);