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

Handle in-app-purchase less fatally on non-Darwin #12511

Merged
merged 1 commit into from
Apr 2, 2018

Conversation

ckerr
Copy link
Member

@ckerr ckerr commented Apr 2, 2018

Fixes #12471

Right now it throws a new error when the file is even require()d, but this isn't ideal as there are cases where everything is mass-required, such as Spectron.

Instead, we should throw an error on non-Darwin environments only when the IAP methods are invoked.

Right now it throws a new error, but this isn't ideal as there
are cases where everything is mass-required, such as Spectron.
Instead, we should throw an error on non-Darwin environments
only when the IAP methods are invoked.
@ckerr ckerr requested review from codebytere and a team April 2, 2018 23:25
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

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

lgtm

@trop
Copy link
Contributor

trop bot commented Apr 2, 2018

We have automatically backported this PR to "2-0-x", please check out #12512

@trop trop bot added merged/2-0-x and removed target/2-0-x labels Apr 2, 2018
@ckerr ckerr deleted the make-in-app-purchases-less-lethal branch April 3, 2018 00:06
sethlu pushed a commit to sethlu/electron that referenced this pull request May 3, 2018
Fixes electron#12311

Right now it throws a new error when the file is even require()d, but this isn't ideal as there are cases where everything is mass-required, such as Spectron. Instead, we should throw an error on non-Darwin environments only when the IAP methods are invoked.
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