src/drivers/webextension/js/driver.js
function setOption(name, value) {
  return new Promise(async (resolve, reject) => {
    try {
      await browser.storage.local.set({ [name]: value });
    } catch (error) {
      wappalyzer.log(error.message, 'driver', 'error');

      return reject(error.message);
    }

    return resolve();
  });
}
function setOption(name, value) {
  return new Promise(async (resolve, reject) => {
    try {
      await browser.storage.local.set({ [name]: value });
    } catch (error) {
      wappalyzer.log(error.message, 'driver', 'error');

      return reject(error.message);
    }

    return resolve();
  });
}
function setOption ( name , value ) { return new Promise ( async ( resolve , reject ) => { try { await browser . storage . local . set ( { [ name ] : value } ) ; } catch ( error ) { wappalyzer . log ( error . message , 'driver' , 'error' ) ; return reject ( error . message ) ; } return resolve ( ) ; } ) ; }
Set a value in localStorage
Set a value in localStorage