fix js loading
This commit is contained in:
parent
50ee5f9f0f
commit
64b8d4d92d
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user