Skip to content

Commit

Permalink
Make webview debuggable with chrome://inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Dec 20, 2022
1 parent a7d4013 commit a31d92f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/dev/vendicated/vencord/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a31d92f

Please sign in to comment.