aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-03-01 23:00:09 -0800
committerAllan Wang <me@allanwang.ca>2020-03-01 23:00:09 -0800
commite19c87ae367154bd5bbf59f080eee4976e64e2da (patch)
tree52f30b2d97dee998aabe46feffc1f4999275ec42 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
parent10d6cfdecb790e235e09641b18b4a10a645f87a0 (diff)
downloadfrost-e19c87ae367154bd5bbf59f080eee4976e64e2da.tar.gz
frost-e19c87ae367154bd5bbf59f080eee4976e64e2da.tar.bz2
frost-e19c87ae367154bd5bbf59f080eee4976e64e2da.zip
Format code
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
index 05248153..f7b15ed2 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
@@ -81,7 +81,12 @@ class FrostJSI(val web: FrostWebView) {
@JavascriptInterface
fun contextMenu(url: String?, text: String?) {
// url will be formatted through webcontext
- web.post { context.showWebContextMenu(WebContext(url.takeIf { it.isIndependent }, text), fbCookie) }
+ web.post {
+ context.showWebContextMenu(
+ WebContext(url.takeIf { it.isIndependent }, text),
+ fbCookie
+ )
+ }
}
/**