Skip to content

Implement partial chrome.* API for devtools extension - #5711

Merged
zcbenz merged 38 commits into
masterfrom
extension-code-cleanup
May 29, 2016
Merged

zcbenz merged 38 commits into
masterfrom
extension-code-cleanup

Conversation

@zcbenz

@zcbenz zcbenz commented May 26, 2016 •

Copy link
Copy Markdown
Contributor

The purpose of this PR is to partially implement chrome.* API to make the React devtools extension work.

Close #915.
Close #2598.

Comment thread lib/browser/chrome-extension.js Outdated
let manifestMap = {}

const getManifestFromPath = function (srcDirectory) {
let manifest = JSON.parse(fs.readFileSync(path.join(srcDirectory, 'manifest.json')))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think manifest could be const.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I used to think const means immutable.

@anaisbetts

Copy link
Copy Markdown
Contributor

Yass yass yass yass yass

@zcbenz

zcbenz commented May 29, 2016

Copy link
Copy Markdown
Contributor Author

The code is ready for merging, tested with:

@johnhaley81

Copy link
Copy Markdown
Contributor

@tomasro27

tomasro27 commented Oct 18, 2016 •

Copy link
Copy Markdown

@zcbenz
I'm guessing these extensions don't work for previous versions of electron, even though the API call is there, right? (0.37.6 in particular). I particularly want to get "augury" extension to work with electron, but I have also tried other extensions, and they don't show up. No errors are displayed either. Using "BrowserWindow.addDevToolsExtension(PATH);"

@MarshallOfSound

Copy link
Copy Markdown
Member

0.37.6 in particular

These API's were only added in 1.2.x so anything before that won't work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants