You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buster/src/storage/revisions/local/20221214080901_update_servi...

25 lines
608 B
JavaScript

const message = 'Update services';
const revision = '20221214080901_update_services';
async function upgrade() {
const changes = {};
const {witSpeechApiKeys} = await browser.storage.local.get(
'witSpeechApiKeys'
);
delete witSpeechApiKeys['catalan'];
delete witSpeechApiKeys['telugu'];
changes.witSpeechApiKeys = witSpeechApiKeys;
await browser.storage.local.remove('ibmSpeechApiLoc');
changes.ibmSpeechApiUrl = '';
changes.microsoftSpeechApiLoc = 'eastus';
changes.storageVersion = revision;
return browser.storage.local.set(changes);
}
export {message, revision, upgrade};