cubiq/add-to-homescreen — pull request #134 by candrews (2014-11-19 17:40:19+00:00)
Title: Make sure window.addToHomescreen is always defined

Since 3b82a5fd4b2cf3fb48772a0d12bb1a438b403811, on IE8, window.addToHomescreen is not defined. This change ensures that it's always defined.

Without this change, the only safe way to initialize addToHomescreen is like this:
```javascript
if(addToHomescreen != null){
// addToHomescreen can be null on IE8
addToHomescreen();
}
```