mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 15:22:33 -05:00
adjust native
This commit is contained in:
1 parent
a86f896694
commit
d35538e2ba
17 files changed
+121
-96
No files matched your search
@@ -126,7 +126,7 @@ export default {
|
||||
IconLogin,
|
||||
IconDownload
|
||||
},
|
||||
inject: ['baseUrl', 't'],
|
||||
inject: ['baseUrl', 't', 'nativePlatform'],
|
||||
props: {
|
||||
submitterSlug: {
|
||||
type: String,
|
||||
@@ -196,7 +196,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
isNativeApp () {
|
||||
return !!window.webkit?.messageHandlers?.download
|
||||
return !!this.nativePlatform && !!window.webkit?.messageHandlers?.download
|
||||
},
|
||||
isWebView () {
|
||||
return /webview|wv|ip((?!.*Safari)|(?=.*like Safari))/i.test(window.navigator.userAgent)
|
||||
|
||||
Reference in new issue
Block a user