summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xStoneIsland/www/js/lib/nav/NavView.js3
-rwxr-xr-xStoneIsland/www/js/vendor/util.js1
2 files changed, 2 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/nav/NavView.js b/StoneIsland/www/js/lib/nav/NavView.js
index 1000e16e..fc373858 100755
--- a/StoneIsland/www/js/lib/nav/NavView.js
+++ b/StoneIsland/www/js/lib/nav/NavView.js
@@ -146,7 +146,7 @@ var NavView = View.extend({
fb: function(){
- window.open("https://www.facebook.com/StoneIsland", '_system')
+ window.open(is_ios ? "facebook://profile/231623463406" : "https://www.facebook.com/StoneIsland", '_system')
},
insta: function(){
window.open("https://instagram.com/stoneisland_official", '_system')
@@ -155,7 +155,6 @@ var NavView = View.extend({
window.open("https://twitter.com/stoneisland", '_system')
},
yt: function(){
- console.log("youtube")
window.open("https://www.youtube.com/user/StoneIslandOfficial", '_system')
},
diff --git a/StoneIsland/www/js/vendor/util.js b/StoneIsland/www/js/vendor/util.js
index e09b6ada..d45c4b98 100755
--- a/StoneIsland/www/js/vendor/util.js
+++ b/StoneIsland/www/js/vendor/util.js
@@ -173,6 +173,7 @@ var browser = (function( ua ) {
// Naive useragent detection pattern
var is_iphone = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))
var is_ipad = (navigator.userAgent.match(/iPad/i))
+var is_ios = is_iphone || is_ipad
var is_android = (navigator.userAgent.match(/Android/i))
var is_mobile = is_iphone || is_ipad || is_android
var is_desktop = ! is_mobile;