Commit 797455fe authored by Duhoux Pierre-Louis's avatar Duhoux Pierre-Louis

Fix #9 remove the async of whereDoIWriteScans... fails on Firefox

parent 0f2acae7
Pipeline #32199733 passed with stages
in 2 minutes and 45 seconds
......@@ -103,9 +103,10 @@ window["FoolSlide"] = function(options) {
$(image).attr("src", urlImg);
}
this.whereDoIWriteScans = async function (doc, curUrl) {
this.whereDoIWriteScans = function (doc, curUrl) {
if ($(this.options.page_container, doc).length === 0) {
doc = await this.passAdult(doc, curUrl) // only happens from test suite...
//doc = await this.passAdult(doc, curUrl) // only happens from test suite...
return $("body", doc)
}
return $(this.options.page_container, doc)
}
......
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