Added catch statements

This commit is contained in:
Kevin Röbert
2020-02-20 14:12:06 +01:00
parent a44e13645c
commit f7949e89f6
8 changed files with 41 additions and 45 deletions

View File

@@ -42,7 +42,7 @@ function contextMenuStart() {
if (!results || results[0] !== true) {
return browser.tabs.executeScript(tab.id, {
file: "/external_js/clipboard-helper.js",
});
}).catch(handleError);
}
}).then(() => {
return browser.tabs.executeScript(tab.id, {