Skip to content

Commit

Permalink
feature : javascript 메소드 밖으로
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Dec 30, 2024
1 parent e19c983 commit 4f3341b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ fun LandingScreen() {
Res.drawable.landing4,
Res.drawable.landing5,
)
val playStoreUrl = "https://play.google.com/store/apps/details?id=com.bff.wespot.real"
val pagerState = rememberPagerState { imageList.size }

VerticalPager(
Expand All @@ -42,8 +41,12 @@ fun LandingScreen() {
modifier = Modifier
.fillMaxSize()
.clickable {
js("window.open($playStoreUrl, '_blank')")
openPlayStore()
},
)
}
}

fun openPlayStore() {
js("window.open('https://play.google.com/store/apps/details?id=com.bff.wespot.real', '_blank')")
}

0 comments on commit 4f3341b

Please sign in to comment.