Use await/async on shared directory
This commit is contained in:
parent
94d411234a
commit
b74acf6f6a
3 changed files with 29 additions and 33 deletions
|
@ -1,7 +1,6 @@
|
|||
const load = () => {
|
||||
return browser.storage.local.get('version').then(({ version }) => {
|
||||
return version;
|
||||
});
|
||||
const load = async() => {
|
||||
let { version } = await browser.storage.local.get('version');
|
||||
return version;
|
||||
};
|
||||
|
||||
const save = (version) => {
|
||||
|
|
Reference in a new issue