diff --git a/openlp/core/display/html/display.js b/openlp/core/display/html/display.js index 4c85c5b70..13dd4dd07 100644 --- a/openlp/core/display/html/display.js +++ b/openlp/core/display/html/display.js @@ -133,7 +133,7 @@ AudioPlayer.prototype.createAudioElement = function () { this._audioElement.addEventListener("volumechange", this._callListener); this._audioElement.addEventListener("durationchange", this._callListener); this._audioElement.addEventListener("loadeddata", this._callListener); - document.addEventListener("complete", function(event) { + document.addEventListener("complete", function(event) { document.body.appendChild(this._audioElement); }); }; @@ -622,7 +622,6 @@ var Display = { } return videoTypes; } - } }; new QWebChannel(qt.webChannelTransport, function (channel) { window.mediaWatcher = channel.objects.mediaWatcher;