Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit d3b868d

Browse files
committed
Move the url opened when clicking the launch firefox button to config.
It was hardcoded in launch.js and was well suited for the debugger, but other tools might want to see other default pages.
1 parent cf24931 commit d3b868d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/devtools-launchpad/configs/development.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"favicon": "assets/launchpad-favicon.png",
66
"theme": "light",
77
"dir": "ltr",
8+
"defaultURL": "https://devtools-html.github.io/debugger-examples/",
89
"logging": {
910
"client": false,
1011
"firefoxProxy": false,

packages/devtools-launchpad/src/server/launch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const {
1212

1313
function handleLaunchRequest(req, res) {
1414
const browser = req.body.browser;
15-
const location = "https://devtools-html.github.io/debugger-examples/";
15+
const location = getValue("defaultURL");
1616

1717
process.env.PATH += `:${__dirname}`;
1818
if (browser == "Firefox") {

0 commit comments

Comments
 (0)