Replace nonstandard for-each-in loop with for-of

Lightbeam is broken in Firefox Nightly 53 because Nightly no longer
supports the nonstandard for-each-in loops. See
https://bugzil.la/1293305.
This commit is contained in:
Chris Peterson 2016-12-03 19:10:50 -08:00
Родитель cfd7358a68
Коммит 0e61cbc4e1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -221,7 +221,7 @@ function attachToLightbeamPage(worker) {
// This lets us toggle between the 3 states (no lightbeam tab open, lightbeam // This lets us toggle between the 3 states (no lightbeam tab open, lightbeam
// tab open but it's not the tab you're on, you're on the lightbeam tab) // tab open but it's not the tab you're on, you're on the lightbeam tab)
function getLightbeamTab() { function getLightbeamTab() {
for each(let tab in tabs) { for (let tab of tabs) {
if (tab.url.slice(0, mainPage.length) === mainPage) { if (tab.url.slice(0, mainPage.length) === mainPage) {
return tab; return tab;
} }