-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide in Safari browser #74
Comments
Yes, it is. Please refer to Hide the smartbanner for certain User Agents. In your case the following should do: <meta name="smartbanner:exclude-user-agent-regex" content=".*Safari.*"> |
but this hides the bar for chrome on iPhone as well. Is there any way to programmatically set the banner as I want to? |
iPhone also runs Safari. In that case you need to work out a regular expression that targets desktop exclusively. |
the thing is - I need to show this on: there is a legacy code in the project that can detect it but I need that the bar will be disabled by default and I could do something like: smartbanner = new SmartBanner();
if (foo) {
smartbanner.publish();
} Is that possible? |
Component comes without API and has only You can use:
|
Never mind, I used something like this: var md = new MobileDetect(window.navigator.userAgent);
if (md.userAgent() == 'Safari') {
$('body').addClass('hide-smartapp-banner');
} And the css is
Thanks a lot for this awesome plugin. |
Hey, |
You can use this exclusion name="smartbanner:exclude-user-agent-regex" content="^((?!Chrome|Android|FxiOS|CriOS).)*Safari" |
Is it possible to hide smartbanner only in safari browser ?
The text was updated successfully, but these errors were encountered: