mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-19 21:46:19 +00:00
12 lines
281 B
JavaScript
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");
|
|
}
|
|
});
|
|
});
|
|
};
|