From a31d92f7959cccec655452a471e814b5499ce711 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 20 Dec 2022 22:39:47 +0100 Subject: [PATCH] Make webview debuggable with chrome://inspect --- app/src/main/java/dev/vendicated/vencord/MainActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/dev/vendicated/vencord/MainActivity.java b/app/src/main/java/dev/vendicated/vencord/MainActivity.java index 346bea0..a13c67d 100644 --- a/app/src/main/java/dev/vendicated/vencord/MainActivity.java +++ b/app/src/main/java/dev/vendicated/vencord/MainActivity.java @@ -25,6 +25,9 @@ public class MainActivity extends Activity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + // https://developer.chrome.com/docs/devtools/remote-debugging/webviews/ + WebView.setWebContentsDebuggingEnabled(BuildConfig.DEBUG); + setContentView(R.layout.activity_main); wv = findViewById(R.id.webview);