We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a2790e commit e096553Copy full SHA for e096553
src/features/platform.js
@@ -145,13 +145,12 @@ function getPlatform () {
145
browser.name = matched.browser
146
browser.platform = matched.platform
147
148
- if (window._cordovaNative) {
149
- browser.cordova = true
150
- }
151
-
152
if (window && window.process && window.process.versions && window.process.versions.electron) {
153
browser.electron = true
154
}
+ else if (window._cordovaNative || document.location.href.indexOf('http') !== 0) {
+ browser.cordova = true
+ }
155
156
return browser
157
0 commit comments