checkSparksPresence is returnig fals on error
This commit is contained in:
parent
4ba7aafaf6
commit
2fe24298af
1 changed files with 3 additions and 1 deletions
|
|
@ -265,6 +265,7 @@ export async function transformTagsLabels(labels, tags_list) {
|
|||
|
||||
export function getActiveSpecialPromptsIDs(addtags = false, get_calendar_event = false, is_chatgpt_web = false) {
|
||||
let output = [];
|
||||
console.log(">>>>>>>>>> getActiveSpecialPromptsIDs addtags: " + addtags + " get_calendar_event: " + get_calendar_event + " is_chatgpt_web: " + is_chatgpt_web);
|
||||
if(is_chatgpt_web){
|
||||
return output;
|
||||
}
|
||||
|
|
@ -274,6 +275,7 @@ export function getActiveSpecialPromptsIDs(addtags = false, get_calendar_event =
|
|||
if(get_calendar_event){
|
||||
output.push('get_calendar_event');
|
||||
}
|
||||
console.log(">>>>>>>>>> getActiveSpecialPromptsIDs output: " + JSON.stringify(output));
|
||||
return output;
|
||||
}
|
||||
|
||||
|
|
@ -281,7 +283,7 @@ 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);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue