From 0bb312370e31d319114d81685d2279d956df03e7 Mon Sep 17 00:00:00 2001 From: Bruno PIERRE Date: Wed, 29 Nov 2017 16:29:23 +0100 Subject: [PATCH] bug fix the test was not done well --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9c026bb..25c9329 100644 --- a/index.js +++ b/index.js @@ -90,7 +90,7 @@ var SmartBanner = function (options) { // - If we dont have app id in meta, dont display the banner // - If opened in safari IOS, dont display the banner - if (!this.parseAppId() && agent.os.name === 'IOS' && agent.browser.name === 'Safari') { + if (!this.parseAppId() || (agent.os.name === 'IOS' && agent.browser.name === 'Safari')) { return; }