Skip to content

Commit b4d19cc

Browse files
authored
fix(browser): re-show console on page reload (#1155)
- check and automatically re-inject/show the console if previously toggled.
1 parent 59597b2 commit b4d19cc

File tree

1 file changed

+6
-0
lines changed
  • src/plugins/browser/android/com/foxdebug/browser

1 file changed

+6
-0
lines changed

src/plugins/browser/android/com/foxdebug/browser/Browser.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,12 @@ public void onPageFinished(WebView view, String url) {
632632
public void onReceiveValue(String value) {
633633
boolean show = !value.equals("null");
634634
browser.menu.setVisible("Console", show && !browser.emulator);
635+
636+
// If user had toggled "Console" on before, re-show it
637+
if (browser.console && show) {
638+
browser.setConsoleVisible(true);
639+
browser.menu.setChecked("Console", true);
640+
}
635641
}
636642
}
637643
);

0 commit comments

Comments
 (0)