jyoungblood / smoke.js

framework-agnostic styled alert system for javascript
http://smoke.js.org/
930 stars 107 forks source link

Uncaught TypeError: Cannot set property 'innerHTML' of null #7

Closed movihus closed 13 years ago

movihus commented 13 years ago

When I try to use it in the html I got this error, in the browser console works.

Browser Chrome 12

jyoungblood commented 13 years ago

yeah, sorry about that. i just updated the demo/documentation with a fix for this.

just call smoke.forceload(); before the alert you want to execute on load and you'll be good to go.