diff options
author | Allan Wang <me@allanwang.ca> | 2020-07-19 15:46:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-19 15:46:09 -0700 |
commit | 2cff5ce38e8a9fa32ee196ca911414e0b2f7e19e (patch) | |
tree | 09a756d7de8e8dcde58335c9b854119e925c03b5 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | |
parent | 7efc3d6f6f95ca9d3323009b5f66d883041a7974 (diff) | |
parent | 983a3dfa7462316df4dc01b583edf0cbe7a9d606 (diff) | |
download | frost-2cff5ce38e8a9fa32ee196ca911414e0b2f7e19e.tar.gz frost-2cff5ce38e8a9fa32ee196ca911414e0b2f7e19e.tar.bz2 frost-2cff5ce38e8a9fa32ee196ca911414e0b2f7e19e.zip |
Merge pull request #1699 from AllanWang/prefs
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | 3 |
1 files changed, 2 insertions, 1 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 9e0c64ab..e2171896 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt @@ -33,8 +33,8 @@ import com.pitchedapps.frost.injectors.CssSmallAssets import com.pitchedapps.frost.injectors.JsActions import com.pitchedapps.frost.injectors.JsAssets import com.pitchedapps.frost.injectors.jsInject +import com.pitchedapps.frost.prefs.Prefs import com.pitchedapps.frost.utils.L -import com.pitchedapps.frost.utils.Prefs import com.pitchedapps.frost.utils.isExplicitIntent import com.pitchedapps.frost.utils.isFacebookUrl import com.pitchedapps.frost.utils.isImageUrl @@ -72,6 +72,7 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() { private val prefs: Prefs get() = web.prefs private val refresh: SendChannel<Boolean> = web.parent.refreshChannel private val isMain = web.parent.baseEnum != null + /** * True if current url supports refresh. See [doUpdateVisitedHistory] for updates */ |