diff --git a/src/components/SmartBanner.js b/src/components/SmartBanner.js index 4ae603e..badc074 100644 --- a/src/components/SmartBanner.js +++ b/src/components/SmartBanner.js @@ -26,6 +26,7 @@ class SmartBanner extends Component { title: PropTypes.string, author: PropTypes.string, url: PropTypes.string, + ignoreIosVersion: PropTypes.bool, }; static defaultProps = { @@ -70,7 +71,8 @@ class SmartBanner extends Component { } else if (agent.os.name === 'Windows Phone' || agent.os.name === 'Windows Mobile') { type = 'windows'; // iOS >= 6 has native support for Smart Banner - } else if (agent.os.name === 'iOS' && parseInt(agent.os.version, 10) < 6) { + } else if (agent.os.name === 'iOS' && + (this.props.ignoreIosVersion || parseInt(agent.os.version, 10) < 6)) { type = 'ios'; } else if (agent.device.vender === 'Amazon' || agent.browser.name === 'Silk') { type = 'kindle'; diff --git a/src/index.html b/src/index.html index fadb261..dc348cd 100644 --- a/src/index.html +++ b/src/index.html @@ -153,6 +153,14 @@
false