Skip to content

Instantly share code, notes, and snippets.

@jasonLaster
Created December 18, 2020 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonLaster/3681c3f20e22a052fdf6a92751cb64a6 to your computer and use it in GitHub Desktop.
Save jasonLaster/3681c3f20e22a052fdf6a92751cb64a6 to your computer and use it in GitHub Desktop.
diff --git a/src/devtools/client/webconsole/panel.js b/src/devtools/client/webconsole/panel.js
index 90b4b753..a7c27d01 100644
--- a/src/devtools/client/webconsole/panel.js
+++ b/src/devtools/client/webconsole/panel.js
@@ -6,21 +6,4 @@
import EventEmitter from "devtools/shared/event-emitter";
import { initOutputSyntaxHighlighting } from "devtools/client/webconsole/utils/syntax-highlighted";
-
-export class WebConsolePanel {
- constructor(toolbox) {
- this.toolbox = toolbox;
- EventEmitter.decorate(this);
- }
-
- async open() {
- initOutputSyntaxHighlighting();
- return this;
- }
-
- focusInput() {
- window.jsterm.focus();
- }
-
- destroy() {}
-}
+initOutputSyntaxHighlighting();
diff --git a/src/ui/utils/devtools-toolbox.js b/src/ui/utils/devtools-toolbox.js
index 485ebcfc..255f62b0 100644
--- a/src/ui/utils/devtools-toolbox.js
+++ b/src/ui/utils/devtools-toolbox.js
@@ -4,7 +4,6 @@ import { defer, EventEmitter } from "protocol/utils";
import { actions } from "ui/actions";
import { DebuggerPanel } from "devtools/client/debugger/panel";
-import { WebConsolePanel } from "devtools/client/webconsole/panel";
import { InspectorPanel } from "devtools/client/inspector/panel";
import Selection from "devtools/client/framework/selection";
@@ -25,10 +24,6 @@ export class DevToolsToolbox {
async init(selectedPanel) {
await this.threadFront.initializeToolbox();
- // The console has to be started immediately on init so that messages appear
- // on the timeline.
- await this.startPanel("console");
-
// The debugger has to be started immediately on init so that when we click
// on any of those messages, either on the console or the timeline, the debugger
// panel is ready to be opened.
@@ -59,7 +54,6 @@ export class DevToolsToolbox {
const panels = {
debugger: DebuggerPanel,
- console: WebConsolePanel,
inspector: InspectorPanel,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment