From be07e8b18fcfb528bfeedb65fb0449c39d41875e Mon Sep 17 00:00:00 2001 From: Leonard Date: Tue, 13 Feb 2024 14:21:29 +0100 Subject: [PATCH] Remove unnecessary load --- .../foss/cnugteren/nlweer/ui/fragments/KnmiPluimFragment.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/foss/cnugteren/nlweer/ui/fragments/KnmiPluimFragment.kt b/app/src/main/java/foss/cnugteren/nlweer/ui/fragments/KnmiPluimFragment.kt index 4619c26..3d3fe53 100644 --- a/app/src/main/java/foss/cnugteren/nlweer/ui/fragments/KnmiPluimFragment.kt +++ b/app/src/main/java/foss/cnugteren/nlweer/ui/fragments/KnmiPluimFragment.kt @@ -40,9 +40,6 @@ class WebClientKnmiPluim : WebViewClient() { val darkMode = sharedPreferences.getString("dark_mode", "dark_mode_no") if (darkMode == "dark_mode_yes") { view.setBackgroundColor(Color.parseColor("#2e2e2e")); // matches Android's dark mode colours - view.loadUrl( - "javascript:document.body.style.setProperty(\"color\", \"white\");" - ); } } }