Don't run needless operation in non-browser windows (#72)