Fix novnc detach in Firefox