You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I've been using cordova-app-loader, with the usual code:
var fs = new CordovaPromiseFS({
Promise: Promise
});
var loader = new CordovaAppLoader({
fs: fs,
serverRoot: 'http://example.com/',
localRoot: 'app',
cacheBuster: true,
checkTimeout: 10000
});
This works fine. However, I added another CordovaPromiseFS instance to access another part of the filesystem and it broke the app loader. Now it tries to download files to file:///app/app.js, which obviously won't work.
I ran eslint on cordova-promise-fs/index.js and it seems that the following variables are undeclared and thus global:
CDV_URL_ROOT
CDV_INTERNAL_URL_ROOT
I think this is a causing the two instances to interfere. Is there a reason for this or can it just be fixed with a couple of vars?
Thanks.
The text was updated successfully, but these errors were encountered:
SystemParadox
added a commit
to SystemParadox/cordova-promise-fs
that referenced
this issue
Jul 21, 2016
Hi. I've been using
cordova-app-loader
, with the usual code:This works fine. However, I added another CordovaPromiseFS instance to access another part of the filesystem and it broke the app loader. Now it tries to download files to
file:///app/app.js
, which obviously won't work.I ran eslint on
cordova-promise-fs/index.js
and it seems that the following variables are undeclared and thus global:CDV_URL_ROOT
CDV_INTERNAL_URL_ROOT
I think this is a causing the two instances to interfere. Is there a reason for this or can it just be fixed with a couple of
var
s?Thanks.
The text was updated successfully, but these errors were encountered: