diff options
author | Allan Wang <me@allanwang.ca> | 2020-02-23 18:18:37 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-02-23 18:18:41 -0800 |
commit | 896e51b99855e8801fe16e335215ea699f937046 (patch) | |
tree | b9cae4169bb58083f1bbf617a24575f5ccd9a322 /app/src | |
parent | 358cd0771de790e299ff8516d422f9b8e075c4e2 (diff) | |
download | frost-896e51b99855e8801fe16e335215ea699f937046.tar.gz frost-896e51b99855e8801fe16e335215ea699f937046.tar.bz2 frost-896e51b99855e8801fe16e335215ea699f937046.zip |
Disable desktop url conversion if url does not support refresh
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | 2 |
1 files changed, 1 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 a3c61323..4d635547 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt @@ -215,7 +215,7 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() { return true } // Convert desktop urls to mobile ones - if (url.contains("https://www.facebook.com")) { + if (url.contains("https://www.facebook.com") && urlSupportsRefresh(url)) { view.loadUrl(url.replace(WWW_FACEBOOK_COM, FACEBOOK_BASE_COM)) return true } |