mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-08 20:19:06 +03:00
refactor: simplify storage function declarations
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
export async function getLists() {
|
async function getLists() {
|
||||||
const { lists } = await chrome.storage.local.get("lists");
|
const { lists } = await chrome.storage.local.get("lists");
|
||||||
return lists || [];
|
return lists || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function saveLists(lists) {
|
async function saveLists(lists) {
|
||||||
await chrome.storage.local.set({ lists });
|
await chrome.storage.local.set({ lists });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user