Suppress messages about unchecked runtime.lastError on Firefox Mobile

This commit is contained in:
toasted-nutbread 2019-08-25 11:08:13 -04:00
parent a50ce724eb
commit c49f3c7838

View File

@ -27,6 +27,7 @@ function utilInvoke(action, params={}) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
try { try {
chrome.runtime.sendMessage({action, params}, (response) => { chrome.runtime.sendMessage({action, params}, (response) => {
utilCheckLastError(chrome.runtime.lastError);
if (response !== null && typeof response === 'object') { if (response !== null && typeof response === 'object') {
if (response.error) { if (response.error) {
reject(response.error); reject(response.error);
@ -43,3 +44,7 @@ function utilInvoke(action, params={}) {
} }
}); });
} }
function utilCheckLastError(e) {
// NOP
}