From a854dcc471078f4e21916730abb5d5d75dd7b03c Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 29 Aug 2017 20:52:53 -0400 Subject: Fix/message loading (#241) * Switch basic user agent * Disable js * Disable clients * Disable edge chat blacklisting * Update theme for message highlights --- .../main/kotlin/com/pitchedapps/frost/web/FrostRequestInterceptor.kt | 2 +- app/src/main/kotlin/com/pitchedapps/frost/web/LoginWebView.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostRequestInterceptor.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostRequestInterceptor.kt index 2dfdda89..34022c25 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostRequestInterceptor.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostRequestInterceptor.kt @@ -23,7 +23,7 @@ private val blankResource: WebResourceResponse by lazy { WebResourceResponse("te //these hosts will redirect to a blank resource private val blacklistHost: Set = setOf( - "edge-chat.facebook.com" +// "edge-chat.facebook.com" ) //these hosts will return null and skip logging diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/LoginWebView.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/LoginWebView.kt index d188d629..73d2476c 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/LoginWebView.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/LoginWebView.kt @@ -49,6 +49,7 @@ class LoginWebView @JvmOverloads constructor( fun loadLogin(progressCallback: (Int) -> Unit, loginCallback: (CookieModel) -> Unit) { this.progressCallback = progressCallback this.loginCallback = loginCallback + L.d("Begin loading login") loadUrl(LOGIN_URL) } -- cgit v1.2.3