Skip to content

Commit

Permalink
Removed reference to setDefaultThemeName() method
Browse files Browse the repository at this point in the history
This functionality was added to v3 to support external changing of theme at runtime. This isn't supported in v4.
  • Loading branch information
Brian Vaughn committed Jul 20, 2019
1 parent 33da657 commit 39ad101
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/react-devtools/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const { join } = require('path');

const argv = require('minimist')(process.argv.slice(2));
const projectRoots = argv._;
const defaultThemeName = argv.theme;

let mainWindow = null;

Expand Down Expand Up @@ -35,14 +34,6 @@ app.on('ready', function() {
'window.devtools.setProjectRoots(' + JSON.stringify(projectRoots) + ')'
);

if (argv.theme) {
mainWindow.webContents.executeJavaScript(
'window.devtools.setDefaultThemeName(' +
JSON.stringify(defaultThemeName) +
')'
);
}

// Emitted when the window is closed.
mainWindow.on('closed', function() {
mainWindow = null;
Expand Down

0 comments on commit 39ad101

Please sign in to comment.