We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af39654 commit d38e3c8Copy full SHA for d38e3c8
platforms/pictique/src/lib/utils/mobile-detection.ts
@@ -0,0 +1,10 @@
1
+export function isMobileDevice(): boolean {
2
+ if (typeof window === 'undefined') return false;
3
+
4
+ return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ||
5
+ (window.innerWidth <= 768);
6
+}
7
8
+export function getDeepLinkUrl(qrData: string): string {
9
+ return qrData;
10
0 commit comments