jquery.tap icon indicating copy to clipboard operation
jquery.tap copied to clipboard

Updated for usage with browsers not having 'module'

Open simonc92 opened this issue 8 years ago • 2 comments

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 avatar Oct 18 '17 19:10 simonc92

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

simonc92 avatar Oct 18 '17 19:10 simonc92

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

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

masi avatar Oct 30 '17 15:10 masi