Comments (8)
@CametDean I have resolved it by using this regex: ^.*(Windows NT|Intel Mac OS X).*$
.
from smartbanner.js.
Thank you !
from smartbanner.js.
@ain Yes
from smartbanner.js.
Possibly related to #503, needs investigation and a better solution.
from smartbanner.js.
I've the same issue. Also on a Windows 11 laptop with touch enabled. On Edge, Chrome and Firefox.
Edge:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.69
Chrome:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Firefox:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
window.navigator.maxTouchPoints // 10
window.MSStream // undefined
from smartbanner.js.
Do you know if the desktop screen in question was a touchscreen?
from smartbanner.js.
Hi ! I have the same problem with 1440 X 734 / 1366 X 768 but my desktop screen isn't a touchscreen. Any ideas ?
from smartbanner.js.
This is still occurring. Was caused by #503 via commit 1e06075 it seems.
(granted I'm using v1.19.1, but the code that is causing this looks the same)
Dell Inspiron 15 7000
Windows 11
Chrome 120.0.6099.72 (Official Build) (64-bit)
window.navigator.userAgent;
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
window.navigator.maxTouchPoints;
10
maxTouchPoints
10
Just my opinions here:
- Assuming that a touch screen is
iOS
is a flaw... - Might be possible to rely on
window.navigator.platform
It returns'Win32'
in my case
-- caniuse.com isn't responding at the moment for me to look at how safe this is to use...
from smartbanner.js.
Related Issues (20)
- Hide smart app banner in web app HOT 4
- Smartbanner for Huawei without Play Store HOT 1
- Smart Banner ios version displayed for touch screen enabled desktops HOT 1
- Angular 2+ compatibility HOT 1
- How to hide smartapp banner in webview apps HOT 1
- Is there a way to add two smart banners? HOT 1
- support for another language in content ? HOT 3
- min file no correctly exported? HOT 2
- Does it work in Angular? For me it is not showing HOT 1
- Unexpected token ')' when close banner HOT 1
- Invisible App Icon HOT 3
- Will view button be changed to open button if app is already installed in mobile(android or iOS ? HOT 1
- Windows Convertibles are recognized as iOS devices HOT 5
- Accessibility concern with tabbing to banner HOT 5
- smartbanner is visible on windows tab when enabled-platforms is set to android,ios HOT 3
- Error library when I use install with npm HOT 14
- Required content HOT 6
- Js and CSS files are throwing error HOT 5
- Value for enabled-platforms HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartbanner.js.