webextension-polyfill/test/fixtures/privacy-setting-extension/background.js

6 lines
213 B
JavaScript
Raw Permalink Normal View History

browser.runtime.onMessage.addListener(async (msg) => {
let {method, args} = msg;
let result = await browser.privacy.services.passwordSavingEnabled[method](...args);
return {result, type: typeof result};
});