Set property on window instead of navigator