aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-08-25 11:08:13 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-08-25 11:09:10 -0400
commitc49f3c78383350b250c1dd823559bb8231f76e54 (patch)
treea12703b80141d99e2003d832eab95cb61c1d8cc8 /ext
parenta50ce724eb70f54f8e62207ec2630997967f36d7 (diff)
Suppress messages about unchecked runtime.lastError on Firefox Mobile
Diffstat (limited to 'ext')
-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
+}