mirror of https://github.com/dessant/buster
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.
17 lines
422 B
JavaScript
17 lines
422 B
JavaScript
2 years ago
|
const message = 'Revision description';
|
||
|
|
||
|
const revision = 'DlgF14Chrh';
|
||
|
|
||
|
async function upgrade() {
|
||
|
const changes = {};
|
||
|
const {speechService} = await browser.storage.local.get('speechService');
|
||
|
if (speechService === 'googleSpeechApiDemo') {
|
||
|
changes.speechService = 'witSpeechApiDemo';
|
||
|
}
|
||
|
|
||
|
changes.storageVersion = revision;
|
||
|
return browser.storage.local.set(changes);
|
||
|
}
|
||
|
|
||
|
export {message, revision, upgrade};
|