Skip to content

module is not defined error logged when testing #4

@brody2consult

Description

@brody2consult

Uncaught ReferenceError: module is not defined error is logged in the console when I run spec/www/index.html in my browser.

The following update to index-footer.js should resolve this issue but may need some additional testing to ensure it continues to work when required in a Webpack-like build:

if (typeof module !== 'undefined')
  module.exports = window.sqlitePlugin;

related to: #3

/cc @DanielSWolf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions