diff --git a/src/main/kotlin/fr/username404/website/subpages/Subpage.kt b/src/main/kotlin/fr/username404/website/subpages/Subpage.kt index 313a895..26cc744 100644 --- a/src/main/kotlin/fr/username404/website/subpages/Subpage.kt +++ b/src/main/kotlin/fr/username404/website/subpages/Subpage.kt @@ -14,8 +14,8 @@ data class Subpage( ) { fun open(): Document = window.document.open( type = "text/html", - replace = (head.map { it.innerHTML }.reduceOrNull { previous, current -> previous + '\n' + current } ?: "").plus( - '\n' + content.innerHTML + replace = (head.map { it.outerHTML }.reduceOrNull { previous, current -> previous + '\n' + current } ?: "").plus( + '\n' + content.outerHTML ) ) }