LEFT | RIGHT |
1 "use strict"; | 1 "use strict"; |
2 | 2 |
3 (function() | 3 (function() |
4 { | 4 { |
5 var supportedPlatforms = { | 5 var supportedPlatforms = { |
6 | 6 |
7 // Desktop browsers | 7 // Desktop browsers |
8 "chrome": "https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpkdaibdcc
ddilifddb", | 8 "chrome": "https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpkdaibdcc
ddilifddb", |
9 "opera": "https://addons.opera.com/extensions/details/opera-adblock/?display
=en-US", | 9 "opera": "https://eyeo.to/adblockplus/opera_install/polish-lp", |
10 "yandexbrowser": "https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpk
daibdccddilifddb", | 10 "yandexbrowser": "https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpk
daibdccddilifddb", |
11 "msie": "https://update.adblockplus.org/latest/adblockplusie.exe", | 11 "msie": "https://eyeo.to/adblockplus/ie_install/polish-lp", |
12 "msedge": "https://www.microsoft.com/store/p/adblock-plus/9nblggh4r9nz", | 12 "msedge": "https://eyeo.to/adblockplus/edge_install/polish-lp", |
13 "firefox": "https://update.adblockplus.org/latest/adblockplusfirefox.xpi", | 13 "firefox": "https://eyeo.to/adblockplus/firefox_install/polish-lp", |
14 "safari": "https://update.adblockplus.org/latest/adblockplussafari.safariext
z", | 14 "safari": "https://eyeo.to/adblockplus/safari_install/polish-lp", |
15 "maxthon": "", | 15 "maxthon": "", |
16 | 16 |
17 // Mobile platforms | 17 // Mobile platforms |
18 "ios": "https://eyeo.to/adblockbrowser/ios/abp-website", | 18 "ios": "https://eyeo.to/adblockplus/ios_install/polish-lp", |
19 "android": "https://eyeo.to/adblockbrowser/android/abp-website" | 19 "android": "https://eyeo.to/adblockbrowser/android/abp-website" |
20 }; | 20 }; |
21 | 21 |
22 function setupHeroDownloadButton() | 22 function setupHeroDownloadButton() |
23 { | 23 { |
24 var detectedPlatform = Object.keys(supportedPlatforms) | 24 var detectedPlatform = Object.keys(supportedPlatforms) |
25 .find(bowser.hasOwnProperty.bind(bowser)); | 25 .find(bowser.hasOwnProperty.bind(bowser)); |
26 | 26 |
27 if (!detectedPlatform) return; | 27 if (!detectedPlatform) return; |
28 | 28 |
(...skipping 19 matching lines...) Expand all Loading... |
48 catch(error) | 48 catch(error) |
49 { | 49 { |
50 window.location = "/" + this.hreflang + "/download"; | 50 window.location = "/" + this.hreflang + "/download"; |
51 } | 51 } |
52 }); | 52 }); |
53 } | 53 } |
54 | 54 |
55 if (typeof bowser != "undefined") setupHeroDownloadButton(); | 55 if (typeof bowser != "undefined") setupHeroDownloadButton(); |
56 | 56 |
57 }()); | 57 }()); |
LEFT | RIGHT |