erkie / erkie.github.com

Adding asteroids to any site on the web
http://erkie.github.com/
461 stars 92 forks source link

No longer works in Safari: TypeError: Result of expression 'stylesheet.styleSheet' [undefined] is not an object. #13

Closed kiddailey closed 13 years ago

kiddailey commented 13 years ago

Used to work great in Safari OS X v4.0.5 (4531.22.7) but just tried it and it now yields the error:

"TypeError: Result of expression 'stylesheet.styleSheet' [undefined] is not an object."

The console also states that the error is on line 25 of asteroids.min.js

FYI: For comparison, the version on the Kottke blog (where I originally found this great script) does still work in Safari as they are serving up a local copy of an older version there.

erkie commented 13 years ago

When did you notice that it had stopped working? Was it working prior to that? There hasn't been any changes for a while now, so it's quite strange.

kiddailey commented 13 years ago

Sorry - I haven't been using it that often. Probably the last time was back in September/October of last year.

And yes, it was working at that time -- see my bug description above where I mention that the old version on the Kottke blog still works fine in Safari.

erkie commented 13 years ago

Anyway, this is fixed as of the current beta.