Skip to content

Commit

Permalink
fix: use NSURL path for receipt url (electron#15574)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and codebytere committed Nov 5, 2018
1 parent 127ad92 commit 08d8029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atom/browser/mac/in_app_purchase.mm
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void FinishTransactionByDate(const std::string& date) {
std::string GetReceiptURL() {
NSURL* receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
if (receiptURL != nil) {
return [[receiptURL absoluteString] UTF8String];
return std::string([[receiptURL path] UTF8String]);
} else {
return "";
}
Expand Down

0 comments on commit 08d8029

Please sign in to comment.