mirror of
https://github.com/bellingcat/auto-archiver-extension.git
synced 2026-06-12 21:48:34 +03:00
new features
This commit is contained in:
19
source/js/utils.js
Normal file
19
source/js/utils.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// /**
|
||||
// *
|
||||
// *
|
||||
// */
|
||||
// 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;
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user