|
@@ -100,13 +100,16 @@ class KMCouponDueWindowController: NSWindowController {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-// let newURL = NSURL(string: string+"&coupon_code="+self.couponCode)
|
|
|
|
-//
|
|
|
|
-// NSWorkspace.shared.open(newURL! as URL)
|
|
|
|
|
|
+
|
|
|
|
+#if VERSION_DMG
|
|
let embeddedWC = KMPurchaseEmbeddedWindowController.currentFirstTrialWC("com.brother.pdfreaderpro.mac.product_3")
|
|
let embeddedWC = KMPurchaseEmbeddedWindowController.currentFirstTrialWC("com.brother.pdfreaderpro.mac.product_3")
|
|
embeddedWC.couponCode = self.couponCode
|
|
embeddedWC.couponCode = self.couponCode
|
|
embeddedWC.showWindow(nil)
|
|
embeddedWC.showWindow(nil)
|
|
embeddedWC.window?.center()
|
|
embeddedWC.window?.center()
|
|
|
|
+#else
|
|
|
|
+ let newURL = NSURL(string: string+"&coupon_code="+self.couponCode)
|
|
|
|
+ NSWorkspace.shared.open(newURL! as URL)
|
|
|
|
+#endif
|
|
|
|
|
|
FMTrackEventManager.defaultManager.trackEvent(event: "PUW", withProperties: ["PUW_Btn" : "Btn_PUW_TrialExpireOffer_Buy"])
|
|
FMTrackEventManager.defaultManager.trackEvent(event: "PUW", withProperties: ["PUW_Btn" : "Btn_PUW_TrialExpireOffer_Buy"])
|
|
}
|
|
}
|