feat: rename to shortify

This commit is contained in:
Steven
2023-03-16 08:25:58 +08:00
parent 143bdb7596
commit d08a738a57
43 changed files with 114 additions and 116 deletions

View File

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