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

pass allowFileAccess option to electron-devtools-installer #747

Conversation

evoactivity
Copy link
Contributor

No description provided.

@evoactivity evoactivity force-pushed the allow-file-access-for-extensions branch from de48bd1 to 869f0d8 Compare March 2, 2021 17:25
@@ -39,7 +39,9 @@ app.on('ready', async () => {
console.log('Failed to install Devtron: ', err);
}
try {
await installExtension(EMBER_INSPECTOR);
await installExtension(EMBER_INSPECTOR, {
loadExtensionOptions: { allowFileAccess: true },
Copy link
Member

Choose a reason for hiding this comment

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

Should this be loadExtensionOptions: { allowFileAccess: true } or just { allowFileAccess: true }?

Copy link
Contributor Author

@evoactivity evoactivity Mar 2, 2021

Choose a reason for hiding this comment

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

It's needed. loadExtensionOptions is what electron-devtools-installer passes to the options argument of electron's loadExtension method, which is where the allowFileAccess option is now available.

@RobbieTheWagner RobbieTheWagner merged commit 54ed6f1 into adopted-ember-addons:master Mar 3, 2021
@RobbieTheWagner
Copy link
Member

Thanks for the PR!

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

Successfully merging this pull request may close these issues.

2 participants