This will not work in non chrome browsers. Use `typeof chrome !== 'undefine'` or `window.chrome`.