Skip to content

Conversation

@simonc92
Copy link

I had the problem that this "addon" was not able to run in browsers which scopre doesn't have "module". I fixed it by checking if the type of module is not undefined which prevents an "ReferenceError: module is not defined" and $.tap not able to work.

@simonc92
Copy link
Author

Btw. thanks for this nice piece of code. Great work!

@masi
Copy link

masi commented Oct 30, 2017

Yep, something along these lines is needed. Also possible:

if (typeof module === 'object' && module.exports)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants