From ea9b852e4a46abaa2fe0f5ed8134fae27487f3fb Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sun, 20 Jun 2021 16:20:53 +0200 Subject: [PATCH] Access the main.kt from javascript --- build.gradle.kts | 3 ++- src/main/kotlin/main.kt | 2 -- src/main/resources/index.html | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0db977e..a193a4e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -37,7 +37,8 @@ kotlin { browser { webpackTask { destinationDirectory = outputDirectory - output.libraryTarget = "global" + output.library = "Web404" + output.libraryTarget = "this" cssSupport.enabled = true } diff --git a/src/main/kotlin/main.kt b/src/main/kotlin/main.kt index 3e21972..718e220 100644 --- a/src/main/kotlin/main.kt +++ b/src/main/kotlin/main.kt @@ -1,5 +1,3 @@ -package fr.username404.website - import kotlinx.browser.document import kotlinx.browser.window import kotlinx.html.dom.append diff --git a/src/main/resources/index.html b/src/main/resources/index.html index 6562420..f24a8a0 100644 --- a/src/main/resources/index.html +++ b/src/main/resources/index.html @@ -48,8 +48,6 @@ Source - + \ No newline at end of file