Use outerHTML instead of innerHTML in Subpage.kt

This commit is contained in:
Username404 2021-06-20 22:22:15 +02:00
parent 84b8275179
commit bb827638c0
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ data class Subpage(
) { ) {
fun open(): Document = window.document.open( fun open(): Document = window.document.open(
type = "text/html", type = "text/html",
replace = (head.map { it.innerHTML }.reduceOrNull { previous, current -> previous + '\n' + current } ?: "").plus( replace = (head.map { it.outerHTML }.reduceOrNull { previous, current -> previous + '\n' + current } ?: "").plus(
'\n' + content.innerHTML '\n' + content.outerHTML
) )
) )
} }