This repository was archived by the owner on Jan 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import * as chrome from "./chrome";
1010import { prefs } from "../utils/prefs" ;
1111import { setupHelper } from "../utils/dbg" ;
1212
13- import { isFirefoxPanel } from "devtools-config" ;
1413import {
1514 bootstrapApp ,
1615 bootstrapStore ,
@@ -49,14 +48,12 @@ async function onConnect(
4948 await client . onConnect ( connection , actions ) ;
5049 await loadFromPrefs ( actions ) ;
5150
52- if ( ! isFirefoxPanel ( ) ) {
53- setupHelper ( {
54- store,
55- actions,
56- selectors,
57- client : client . clientCommands
58- } ) ;
59- }
51+ setupHelper ( {
52+ store,
53+ actions,
54+ selectors,
55+ client : client . clientCommands
56+ } ) ;
6057
6158 bootstrapApp ( store ) ;
6259 return { store, actions, selectors, client : commands } ;
Original file line number Diff line number Diff line change 11import { bindActionCreators } from "redux" ;
22import * as timings from "./timings" ;
33import { prefs , features } from "./prefs" ;
4+ import { isDevelopment } from "devtools-config" ;
45
56function findSource ( dbg , url ) {
67 const sources = dbg . selectors . getSources ( ) ;
@@ -56,10 +57,12 @@ export function setupHelper(obj) {
5657
5758 window . dbg = dbg ;
5859
59- console . group ( "Development Notes" ) ;
60- const baseUrl = "https://devtools-html.github.io/debugger.html" ;
61- const localDevelopmentUrl = `${ baseUrl } /docs/dbg.html` ;
62- console . log ( "Debugging Tips" , localDevelopmentUrl ) ;
63- console . log ( "dbg" , window . dbg ) ;
64- console . groupEnd ( ) ;
60+ if ( isDevelopment ( ) ) {
61+ console . group ( "Development Notes" ) ;
62+ const baseUrl = "https://devtools-html.github.io/debugger.html" ;
63+ const localDevelopmentUrl = `${ baseUrl } /docs/dbg.html` ;
64+ console . log ( "Debugging Tips" , localDevelopmentUrl ) ;
65+ console . log ( "dbg" , window . dbg ) ;
66+ console . groupEnd ( ) ;
67+ }
6568}
You can’t perform that action at this time.
0 commit comments