method checkSparksPresence added
This commit is contained in:
parent
d264e9e5f2
commit
9ad876f5b3
1 changed files with 9 additions and 0 deletions
|
|
@ -264,6 +264,15 @@ export async function transformTagsLabels(labels, tags_list) {
|
|||
}
|
||||
|
||||
|
||||
export async function checkSparksPresence() {
|
||||
try {
|
||||
return (await browser.runtime.sendMessage('thunderai-sparks@micz.it',{action: "checkPresence"}) === 'ok');
|
||||
} catch (error) {
|
||||
console.error('[ThunderAI] Error checking Sparks presence:', error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// The following methods are a modified version derived from https://github.com/ali-raheem/Aify/blob/13ff87583bc520fb80f555ab90a90c5c9df797a7/plugin/content_scripts/compose.js
|
||||
|
||||
const insertHtml = function (replyHtml, fullBody_string) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue