add fake chrome.runtime.onMessage.removeListener

This commit is contained in:
siikamiika 2020-04-04 17:06:06 +03:00
parent 867902523f
commit 668be6224b

View File

@ -27,7 +27,8 @@ require('fake-indexeddb/auto');
const chrome = { const chrome = {
runtime: { runtime: {
onMessage: { onMessage: {
addListener() { /* NOP */ } addListener() { /* NOP */ },
removeListener() { /* NOP */ }
}, },
getURL(path2) { getURL(path2) {
return url.pathToFileURL(path.join(__dirname, '..', 'ext', path2.replace(/^\//, ''))); return url.pathToFileURL(path.join(__dirname, '..', 'ext', path2.replace(/^\//, '')));