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/versions/local/UoT3kGyBH.js

27 lines
653 B
JavaScript

import browser from 'webextension-polyfill';
const message = 'Initial version';
const revision = 'UoT3kGyBH';
const downRevision = null;
const storage = browser.storage.local;
async function upgrade() {
const changes = {
speechService: 'googleSpeechApiDemo', // 'googleSpeechApiDemo', 'witSpeechApiDemo', 'googleSpeechApi', 'witSpeechApi', 'ibmSpeechApi', 'microsoftSpeechApi'
googleSpeechApiKey: '',
installTime: new Date().getTime(),
useCount: 0
};
changes.storageVersion = revision;
return storage.set(changes);
}
async function downgrade() {
return storage.clear();
}
export {message, revision, upgrade, downgrade};