aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-22 16:24:12 -0700
committerAllan Wang <me@allanwang.ca>2017-06-22 16:24:12 -0700
commitc9ee5d79df4cb1baab4357fc11c13a4514af2c6f (patch)
tree520c8c54f238481a8313802c1355c004cc993743 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt
parent56678f8a76a4034ae8a63c92e49ba39cc54ee057 (diff)
downloadfrost-c9ee5d79df4cb1baab4357fc11c13a4514af2c6f.tar.gz
frost-c9ee5d79df4cb1baab4357fc11c13a4514af2c6f.tar.bz2
frost-c9ee5d79df4cb1baab4357fc11c13a4514af2c6f.zip
Add ad block
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt
index 8b1eca1e..ebea533c 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClient.kt
@@ -52,6 +52,8 @@ open class FrostWebViewClient(val webCore: FrostWebViewCore) : WebViewClient() {
}
view.jsInject(JsActions.LOGIN_CHECK,
CssAssets.ROUND_ICONS.maybe(Prefs.showRoundedIcons),
+ CssHider.PEOPLE_YOU_MAY_KNOW.maybe(!Prefs.showSuggestedFriends),
+ CssHider.ADS.maybe(!Prefs.showFacebookAds),
JsAssets.HEADER_BADGES.maybe(webCore.baseEnum != null))
onPageFinishedActions(url)
}