Bug 1082625 - [Flame][Video] When camera is started by the video app, the mode

switch displays incorrectly
nit: `window.addEventListener()`