Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if cordova plugin file is installed #29

Open
michogar opened this issue Oct 9, 2018 · 0 comments
Open

Check if cordova plugin file is installed #29

michogar opened this issue Oct 9, 2018 · 0 comments
Labels

Comments

@michogar
Copy link
Collaborator

michogar commented Oct 9, 2018

App doesn't check if the plugin is installed and throws an exception trying to get the database

mapbox-gl-cordova-offline.js:509 TypeError: Cannot read property 'applicationDirectory' of undefined
    at mapbox-gl-cordova-offline.js:591
    at new Promise (<anonymous>)
    at t.copyDatabaseFile (mapbox-gl-cordova-offline.js:591)
    at t.openDatabase (mapbox-gl-cordova-offline.js:591)
    at new t (mapbox-gl-cordova-offline.js:591)
    at exports.create (mapbox-gl-cordova-offline.js:209)
    at new t (mapbox-gl-cordova-offline.js:211)
    at t.addSource (mapbox-gl-cordova-offline.js:369)
    at e.addSource (mapbox-gl-cordova-offline.js:483)
    at mapbox-gl-cordova-offline.js:595
Evented.fire @ mapbox-gl-cordova-offline.js:509
@michogar michogar added the bug label Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant