diff --git a/lib/ui.js b/lib/ui.js index cd05122..779a696 100644 --- a/lib/ui.js +++ b/lib/ui.js @@ -221,7 +221,7 @@ function attachToLightbeamPage(worker) { // 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) function getLightbeamTab() { - for each(let tab in tabs) { + for (let tab of tabs) { if (tab.url.slice(0, mainPage.length) === mainPage) { return tab; }