mirror of
https://github.com/bellingcat/auto-archiver-extension.git
synced 2026-06-08 03:28:34 +03:00
19 lines
405 B
JavaScript
19 lines
405 B
JavaScript
// /**
|
|
// *
|
|
// *
|
|
// */
|
|
// export async function callBackground(parameters) {
|
|
// try {
|
|
// const answer = await chrome.runtime.sendMessage(parameters);
|
|
// if (answer.status == "error") {
|
|
// console.error(`error: ${answer.result}`)
|
|
// //TODO: modal/errors
|
|
// return null;
|
|
// } else {
|
|
// return answer.result;
|
|
// }
|
|
// } catch (e) {
|
|
// console.error(e);
|
|
// return null;
|
|
// }
|
|
// }
|