Commit 8edd6ce4 authored by Duhoux Pierre-Louis's avatar Duhoux Pierre-Louis

Fix mangarock has no body anymore

parent 868197c7
Pipeline #56934672 passed with stages
in 5 minutes and 34 seconds
......@@ -77,6 +77,10 @@ if (window["__armreader__"] === undefined) { // avoid loading script twice
* - more options, resize fit height, width
*/
function initReader() {
if (!document.body) { // create body element if non existing (thanks mangarock)
let bd = document.createElement("body")
document.children[0].appendChild(bd)
}
document.body.innerHTML = ""; //empty the dom page
let amrdiv = document.createElement("div")
amrdiv.id = "app"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment