diff options
author | Allan Wang <me@allanwang.ca> | 2020-05-23 21:03:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 21:03:21 -0700 |
commit | ffce9e645572eefdcd837921214a2be026514b43 (patch) | |
tree | cca55166d7f70f7c92fa82fb903fea73fa523190 /app/src/main/kotlin/com/pitchedapps/frost/web | |
parent | 7c8e02d385d418ebae1f8f718b72c4170a1bc819 (diff) | |
parent | 0a0108e69d0e720634b1f0fdfb946fce7e714fe7 (diff) | |
download | frost-ffce9e645572eefdcd837921214a2be026514b43.tar.gz frost-ffce9e645572eefdcd837921214a2be026514b43.tar.bz2 frost-ffce9e645572eefdcd837921214a2be026514b43.zip |
Merge pull request #1682 from AllanWang/auto-resize-textarea
Auto resize textarea
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt index 4d635547..973efc4b 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt @@ -80,6 +80,7 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() { super.doUpdateVisitedHistory(view, url, isReload) urlSupportsRefresh = urlSupportsRefresh(url) web.parent.swipeEnabled = urlSupportsRefresh + view.jsInject(JsAssets.AUTO_RESIZE_TEXTAREA, prefs = prefs) v { "History $url; refresh $urlSupportsRefresh" } } @@ -128,6 +129,7 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() { ), JsAssets.DOCUMENT_WATCHER, JsAssets.HORIZONTAL_SCROLLING, + JsAssets.AUTO_RESIZE_TEXTAREA, JsAssets.CLICK_A, CssHider.ADS.maybe(!prefs.showFacebookAds), JsAssets.CONTEXT_A, |