From 896e51b99855e8801fe16e335215ea699f937046 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 23 Feb 2020 18:18:37 -0800 Subject: Disable desktop url conversion if url does not support refresh --- app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main') 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 } -- cgit v1.2.3