Suppress messages about unchecked runtime.lastError on Firefox Mobile
This commit is contained in:
parent
a50ce724eb
commit
c49f3c7838
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user