mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-19 05:25:43 +00:00
12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
export const getSlashData = () => {
|
|
return new Promise((resolve, reject) => {
|
|
chrome.storage.local.get(["slash"], (data) => {
|
|
if (data?.slash) {
|
|
resolve(data.slash);
|
|
} else {
|
|
reject("slash data not found");
|
|
}
|
|
});
|
|
});
|
|
};
|