Untitled
unknown
plain_text
2 months ago
764 B
5
Indexable
Never
let redirectUrl = ""; let timeout = 2000; const platform = FingerprintUtil.platform(); if (this.platform === "ios") { redirectUrl = "https://apps.apple.com/tw/app/國泰人壽/id432046643"; timeout = timeout * 2; } else if (this.platform === "android") { redirectUrl = "https://play.google.com/store/apps/details?id=com.cathay.main&hl=zh_TW&gl=US"; } else { // PC/NB // redirectUrl = // "https://online.cathaylife.com.tw/OIWeb/servlet/HttpDispatcher/OIA0_0100/prompt"; } window.location = `${this.schema}${this.linkContent}`; if (redirectUrl) { setTimeout(function () { window.location = redirectUrl; }, timeout); }