Skip to content

Commit e096553

Browse files
committed
fix: [ios] Not detecting Cordova correctly quasarframework#316
1 parent 7a2790e commit e096553

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/features/platform.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,12 @@ function getPlatform () {
145145
browser.name = matched.browser
146146
browser.platform = matched.platform
147147

148-
if (window._cordovaNative) {
149-
browser.cordova = true
150-
}
151-
152148
if (window && window.process && window.process.versions && window.process.versions.electron) {
153149
browser.electron = true
154150
}
151+
else if (window._cordovaNative || document.location.href.indexOf('http') !== 0) {
152+
browser.cordova = true
153+
}
155154

156155
return browser
157156
}

0 commit comments

Comments
 (0)