aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2019-09-02 11:47:14 -0700
committerAlex Yatskov <alex@foosoft.net>2019-09-02 11:47:14 -0700
commit5347da528bd07166b4686f45440d80a77f4888a3 (patch)
tree08bbfd0c859327ee9a08ca86afd222a222ced62b /ext/fg/js/util.js
parentda981c0b911dc5a697246006089b266fddba84a7 (diff)
parent4ac55da7dd5354e6c3495f04583352d0d863b7b6 (diff)
Merge branch 'master' into testing
Diffstat (limited to 'ext/fg/js/util.js')
-rw-r--r--ext/fg/js/util.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/fg/js/util.js b/ext/fg/js/util.js
index 954b3988..7518beb5 100644
--- a/ext/fg/js/util.js
+++ b/ext/fg/js/util.js
@@ -27,6 +27,7 @@ function utilInvoke(action, params={}) {
return new Promise((resolve, reject) => {
try {
chrome.runtime.sendMessage({action, params}, (response) => {
+ utilCheckLastError(chrome.runtime.lastError);
if (response !== null && typeof response === 'object') {
if (response.error) {
reject(response.error);
@@ -43,3 +44,7 @@ function utilInvoke(action, params={}) {
}
});
}
+
+function utilCheckLastError(e) {
+ // NOP
+}