Skip to content

Commit

Permalink
Add some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKaN committed Apr 22, 2024
1 parent e8b8c53 commit 2bf1a76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## v2.10.0-SNAPSHOT
* Updated to Kotlin 1.9
* Deprecated `renderTemplateUrl` for show recommendations
* Fix dom storage for Piano ID
* Updated dependencies:
- Kotlin [1.8.22 -> 1.9.23]
- com.facebook.android:facebook-login [16.3.0 -> 17.0.0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class WidgetJs(
public val widgetId: String,
@get:JavascriptInterface
public val siteId: String,
@get:JavascriptInterface
@Deprecated("Will be removed in next releases")
public val renderTemplateUrl: String = "auto",
) : BaseJsInterface() {

Expand Down
7 changes: 5 additions & 2 deletions id/id/src/main/java/io/piano/android/id/PianoIdActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ public class PianoIdActivity : AppCompatActivity(), PianoIdJsInterface {
with(binding) {
webview.apply {
savedInstanceState?.let { restoreState(it) }
settings.javaScriptEnabled = true
settings.setSupportMultipleWindows(true)
settings.apply {
javaScriptEnabled = true
domStorageEnabled = true
setSupportMultipleWindows(true)
}
webChromeClient = object : WebChromeClient() {
override fun onProgressChanged(view: WebView, newProgress: Int) {
super.onProgressChanged(view, newProgress)
Expand Down

0 comments on commit 2bf1a76

Please sign in to comment.