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

addToHomeScreen must be called from within the <body> #271

Open matthiasmiller opened 6 years ago

matthiasmiller commented 6 years ago

I was having trouble getting ATH to work because of an error. I discovered that in order to reference document.body as the container, the script must be within the tag.

Some of the demos reflect this, but not all of them do. I've updated the demos to reflect this.