Minor tweaks while debugging the broken browserAction
This commit is contained in:
Родитель
0fe681fb9b
Коммит
42a4a03285
|
@ -5,7 +5,6 @@
|
|||
class BrowserActionButtonChoiceFeature {
|
||||
/**
|
||||
* - set image, text, click handler (telemetry)
|
||||
* - tell Legacy Addon to send
|
||||
*/
|
||||
constructor(variation) {
|
||||
console.log(
|
||||
|
@ -29,6 +28,7 @@ class BrowserActionButtonChoiceFeature {
|
|||
* - change label
|
||||
*/
|
||||
handleButtonClick() {
|
||||
console.log("handleButtonClick");
|
||||
// note: doesn't persist across a session, unless you use localStorage or similar.
|
||||
this.timesClickedInSession += 1;
|
||||
console.log("got a click", this.timesClickedInSession);
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
},
|
||||
"browser_action": {
|
||||
"browser_style": true,
|
||||
"default_icon": "icons/isolatedcorndog.svg",
|
||||
"default_title": "button label"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -156,7 +156,8 @@ module.exports.installAddon = async(driver, fileLocation) => {
|
|||
path: fileLocation,
|
||||
temporary: true,
|
||||
});
|
||||
return executor.execute(installCmd);
|
||||
await executor.execute(installCmd);
|
||||
console.log(`Add-on at ${fileLocation} installed`);
|
||||
};
|
||||
|
||||
module.exports.uninstallAddon = async(driver, id) => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче