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

exports.function throws "unexpected token function" in Android #170

Closed
MarkOGDev opened this issue Jan 23, 2016 · 1 comment
Closed

exports.function throws "unexpected token function" in Android #170

MarkOGDev opened this issue Jan 23, 2016 · 1 comment

Comments

@MarkOGDev
Copy link

Hello,

My Android phone throws this error "unexpected token function" when loading the clipboard.js script file.
This is on line 150 of clipboard.js.
Which looks like this:
exports.function = function(value)

I think you are naming a function 'function'.
It looks to me like android does not want you to use the word 'function' as a function name.
Is it possible for this to be changed to a different name?

Regards,
Mark.

@zenorocha
Copy link
Owner

Thanks for reporting @MarkOGDev! This was a bug fixed in zenorocha/good-listener#5.

A new version will be released shortly.

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

No branches or pull requests

2 participants