cubiq / add-to-homescreen

Add to home screen call-out for mobile devices
http://cubiq.org/add-to-home-screen
2.29k stars 748 forks source link

options is undefined #227

Open JamieMcDonnell opened 8 years ago

JamieMcDonnell commented 8 years ago

on line 230 you have the following: if ( options.debug && (typeof options.logging === "undefined") ) { ...

When I run my site in Chrome Mobile Emulation mode, this fails because "options" is undefined, yet you are trying to access properties of it as if it were an object.

My workaround is: if (options && options.debug && (typeof options.logging === "undefined") ) { ...

rip747 commented 8 years ago

I used you work around for version 3.2.2. it is fixed now in master though