slash-e/extension/common.js
2023-07-11 08:37:27 +08:00

12 lines
281 B
JavaScript

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");
}
});
});
};