File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 11root : true
22extends : ' @cordova/eslint-config/browser'
3+ globals :
4+ cordova : true
35
46overrides :
5- - files : [tests/**/*.js]
6- extends : ' @cordova/eslint-config/node-tests'
7+ - files : [tests/**/*.js]
8+ extends : ' @cordova/eslint-config/node-tests'
9+ globals :
10+ cordova : true
Original file line number Diff line number Diff line change @@ -3435,9 +3435,14 @@ exports.defineAutoTests = function () {
34353435 /* These specs verify that FileEntries have a toNativeURL method
34363436 * which appears to be sane.
34373437 */
3438- var pathExpect = cordova . platformId === 'windowsphone' ? '//nativ' : 'file://' ; // eslint-disable-line no-undef
3439-
3440- if ( isChrome ) {
3438+ var pathExpect = 'file://' ;
3439+
3440+ if ( cordova . platformId === 'android' ) {
3441+ // Starting from Cordova-Android 10.x, the app content is served from the https scheme
3442+ pathExpect = 'https://' ;
3443+ } else if ( cordova . platformId === 'windowsphone' ) {
3444+ pathExpect = '//nativ' ;
3445+ } else if ( isChrome ) {
34413446 pathExpect = 'filesystem:http://' ;
34423447 }
34433448
You can’t perform that action at this time.
0 commit comments