diff options
author | Allan Wang <me@allanwang.ca> | 2019-04-04 21:28:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-04 21:28:41 -0400 |
commit | d0b4471667a3979deddf2c1e947cff301fb4d254 (patch) | |
tree | a62b3d2fc5526c87d0699cc8bce178f7b508d35e /app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt | |
parent | 2f6069d85d4e3bf1ef2bed4cf1c4203ecdc996bd (diff) | |
download | frost-d0b4471667a3979deddf2c1e947cff301fb4d254.tar.gz frost-d0b4471667a3979deddf2c1e947cff301fb4d254.tar.bz2 frost-d0b4471667a3979deddf2c1e947cff301fb4d254.zip |
Merge mute specific fixes (#1386)
* Merge mute specific fixes
* Remove version tag in user agent
* Add extra forward slash
* Update kau
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt index 90c4c7e2..e278db80 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/web/DebugWebView.kt @@ -24,7 +24,7 @@ import android.util.AttributeSet import android.view.View import android.webkit.WebView import ca.allanwang.kau.utils.withAlpha -import com.pitchedapps.frost.facebook.USER_AGENT_BASIC +import com.pitchedapps.frost.facebook.USER_AGENT_FULL import com.pitchedapps.frost.injectors.CssHider import com.pitchedapps.frost.injectors.jsInject import com.pitchedapps.frost.utils.L @@ -53,9 +53,9 @@ class DebugWebView @JvmOverloads constructor( } @SuppressLint("SetJavaScriptEnabled") - fun setupWebview() { + private fun setupWebview() { settings.javaScriptEnabled = true - settings.userAgentString = USER_AGENT_BASIC + settings.userAgentString = USER_AGENT_FULL setLayerType(View.LAYER_TYPE_HARDWARE, null) webViewClient = DebugClient() isDrawingCacheEnabled = true |