kudago / smart-app-banner

Lightweight smart app banner with no jquery requirement
MIT License
528 stars 251 forks source link

How disable condition in smart banner ? #124

Closed zababurinsv closed 3 years ago

zababurinsv commented 4 years ago

In banner, if i include force= ios banner not showing.

because there is a condition in the constructor.

// - If we dont have app id in meta, dont display the banner
// - If opened in safari IOS, dont display the banner
if (!this.appId && agent.os.name === 'IOS' && 
    agent.browser.name === 'Safari') {
        return;
}

How can i disable this condition ?