fix js loading

This commit is contained in:
Chris kerr 2024-05-22 10:23:02 -04:00
parent 50ee5f9f0f
commit 64b8d4d92d

View File

@ -6,6 +6,8 @@ import android.os.Bundle
import android.webkit.WebView import android.webkit.WebView
import android.webkit.WebSettings import android.webkit.WebSettings
import java.io.IOException import java.io.IOException
import android.content.Context
import android.webkit.JavascriptInterface
class MainActivity : AppCompatActivity() { class MainActivity : AppCompatActivity() {
@ -73,7 +75,7 @@ class MainActivity : AppCompatActivity() {
</head> </head>
<body> <body>
$htmlContent $htmlContent
<script> type="module" $javaScriptCode</script> <script type="module"> $javaScriptCode</script>
</body> </body>
</html> </html>
""".trimIndent() """.trimIndent()