Browse Source

fix: use NSURL path for receipt url (#15574)

trop[bot] 6 years ago
parent
commit
08d80295d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/mac/in_app_purchase.mm

+ 1 - 1
atom/browser/mac/in_app_purchase.mm

@@ -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 "";
   }