This will throw TypeError when `window.chrome` doesn't exist.

Also better to use `===`.