diff --git a/dashboard-ui/thirdparty/browser.js b/dashboard-ui/thirdparty/browser.js index 4ea3a44f6f..79ac6932c8 100644 --- a/dashboard-ui/thirdparty/browser.js +++ b/dashboard-ui/thirdparty/browser.js @@ -965,6 +965,18 @@ browser.tv = true; } + if (browser.ipad || browser.iphone) { + if (userAgent.toLowerCase().indexOf('CPU OS 9') != -1) { + browser.iOSVersion = 9; + } + else if (userAgent.toLowerCase().indexOf('CPU OS 8') != -1) { + browser.iOSVersion = 8; + } + else if (userAgent.toLowerCase().indexOf('CPU OS 7') != -1) { + browser.iOSVersion = 7; + } + } + jQuery.browser = browser; })(jQuery, window); diff --git a/dashboard-ui/thirdparty/cordova/imagestore.js b/dashboard-ui/thirdparty/cordova/imagestore.js index b30c2fbb95..effc581a67 100644 --- a/dashboard-ui/thirdparty/cordova/imagestore.js +++ b/dashboard-ui/thirdparty/cordova/imagestore.js @@ -53,7 +53,10 @@ function normalizeReturnUrl(url) { if ($.browser.safari) { - return url.replace('file://', ''); + + if ($.browser.iOSVersion == 8) { + return url.replace('file://', ''); + } } return url; }