Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up unused manifest property + prevent error in storage lookup #899

Merged
merged 2 commits into from
Dec 21, 2018

Conversation

22a
Copy link
Contributor

@22a 22a commented Dec 19, 2018

This PR removes a chrome manifest warning (visible when loading the unpacked extension produced by the steps in the readme) by removing an obsolete browser_style property from the top level options_ui hash:
screenshot 2018-12-19 at 13 32 02

Per the docs this property is no longer used, removing it has no effect as the default when specifying the options menu using options_ui(embedded) - as opposed to simply options_page(full page) - is this "modal" style options dialog:

screenshot 2018-12-19 at 14 36 13

There is also the option top explicitly set the options_ui.open_in_tab property to false. Would we prefer to be explicit or rely on the default here?


While working on a different issue I noticed a background script error caused by attempting to access a showTomster property of undefined so I've added a guard inside the chrome.storage.sync.get call for when our options haven't yet been initialised (before the first user prompted call to storeOptions sets the correct structure). I'm happy to move this change out into a different PR / drop it if you'd prefer.

@RobbieTheWagner
Copy link
Member

Thanks for the PR!

@RobbieTheWagner RobbieTheWagner merged commit 4cc39db into emberjs:master Dec 21, 2018
@22a 22a deleted the 22a/fix-errors-and-warnings branch December 22, 2018 02:09
cyril-sf pushed a commit to cyril-sf/ember-inspector that referenced this pull request Mar 30, 2022
…mberjs#899)

* remove unused 'browser_style' in metadata's 'options_ui'

https://developer.chrome.com/extensions/options#embedded_options

* prevent property lookup on undefined option data hash
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.

2 participants