diff --git a/web/viewer.js b/web/viewer.js index 2f85eccef7e31..26e7dc940c070 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -1468,6 +1468,7 @@ function webViewerInitialized() { if (imageStreamDecoderListener) { var moduleEl = document.createElement('embed'); + moduleEl.setAttribute('style', 'display: block;'); moduleEl.setAttribute('width', 0); moduleEl.setAttribute('height', 0); moduleEl.setAttribute('path', 'image_stream_decoder'); @@ -1493,8 +1494,6 @@ function webViewerInitialized() { listenerEl.addEventListener('error', disableImageStreamDecoder('error'), true); listenerEl.addEventListener('crash', disableImageStreamDecoder('crash'), true); listenerEl.appendChild(moduleEl); - - document.body.appendChild(listenerEl); } //#if !(FIREFOX || MOZCENTRAL)