This repository has been archived by the owner. It is now read-only.
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upShow Locale Strings on Extensions Page #7879
Merged
Conversation
|
Looks good visually and works ok for some extensions but needs another check to avoid issues while toggling enabled/disabled extension state. |
app/extensions.js
Outdated
| if (fs.existsSync(msgPath)) { | ||
| let messages = JSON.parse(fs.readFileSync(msgPath).toString()) | ||
| properties.forEach((property) => { | ||
| let key = installInfo[property].match(pattern)[1] |
This comment has been minimized.
This comment has been minimized.
cezaraugusto
Apr 1, 2017
Contributor
I think you need another check here. While toggling passwords I got the following error reported on console:
An uncaught exception occurred in the main process Uncaught Exception:
TypeError: Cannot read property '1' of null
at properties.forEach (/Users/cezaraugusto/dev/browser-laptop/app/extensions.js:376:57)
at Array.forEach (native)
at insertLocaleStrings (/Users/cezaraugusto/dev/browser-laptop/app/extensions.js:375:20)
at process.on (/Users/cezaraugusto/dev/browser-laptop/app/extensions.js:358:19)
at emitOne (events.js:96:13)
at process.emit (events.js:188:7)
at process.on (/Users/cezaraugusto/dev/browser-laptop/node_modules/electron-prebuilt/dist/Brave.app/Contents/Resources/electron.asar/browser/api/extensions.js:37:11)
at emitOne (events.js:96:13)
at process.emit (events.js:188:7)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jonathansampson
Apr 2, 2017
•
Author
Collaborator
@cezaraugusto What do you mean by toggling? Were you enabling and disabling the extension(s) in Preferences?
Nevermind. I repro.
|
Tested it out, works perfectly! Great job on this one @cezaraugusto Sampson had updated after your feedback and I manually tested, looked great. Do you mind also confirming? (will merge here) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
jonathansampson commentedMar 25, 2017
•
edited by bsclifton
Test Plan
Description
git rebase -ito squash commits (if needed).Fixes #7826 #7683