georgemandis / konami-js

Adding the Konami Code easter egg to your projects since 2009! Compatible with gestures on smartphones and tablets as well. Compatible with all front-end frameworks and vanilla JavaScript
http://konamijs.mand.is/
MIT License
959 stars 122 forks source link

SyntaxError: missing ; before statement #25

Closed pierre-sarrazin closed 8 years ago

pierre-sarrazin commented 8 years ago

When I used a JS minifier and I have 2 syntax errors because line breaks are removed:

  1. Line 23 after } and before obj.attachEvent("on"
  2. Line 96 after } and before typeof callback
georgemandis commented 8 years ago

Which minifier are you using? I copy/pasted the current code into here:

http://jscompress.com/

And loaded it in a test document and I'm not seeing any errors.

Probably also worth asking: which browser?

pierre-sarrazin commented 8 years ago

An old JS minifier... So I have removed it. You're right, sorry.