feat: add chrome extension

This commit is contained in:
Steven
2023-07-11 08:37:27 +08:00
parent 28df6e35fb
commit 1cbab78989
6 changed files with 87 additions and 2 deletions

11
extension/common.js Normal file
View File

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