chore: update extension

This commit is contained in:
steven
2022-09-30 14:39:19 +08:00
parent 02619882d1
commit 8d6848e754
5 changed files with 31 additions and 41 deletions

11
extension/common.js Normal file
View File

@@ -0,0 +1,11 @@
export const getCorgiData = () => {
return new Promise((resolve, reject) => {
chrome.storage.local.get(["corgi"], (data) => {
if (data?.corgi) {
resolve(data.corgi);
} else {
reject("corgi data not found");
}
});
});
};