Spaces:
Build error
Build error
Update src/addons/addons/debug-console/userscript.js
Browse files
src/addons/addons/debug-console/userscript.js
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
while (true) {
|
2 |
const targetElem = await addon.tab.waitForElement(
|
3 |
'div[class*="menu-bar_file-group"] > div:last-child:not(.sa-record)',
|
@@ -200,3 +201,4 @@ while (true) {
|
|
200 |
targetElem.parentElement.appendChild(debugBtn);
|
201 |
}
|
202 |
}
|
|
|
|
1 |
+
(async function setupButtons() {
|
2 |
while (true) {
|
3 |
const targetElem = await addon.tab.waitForElement(
|
4 |
'div[class*="menu-bar_file-group"] > div:last-child:not(.sa-record)',
|
|
|
201 |
targetElem.parentElement.appendChild(debugBtn);
|
202 |
}
|
203 |
}
|
204 |
+
})();
|