diff --git a/js/mzta-utils.js b/js/mzta-utils.js index 63750e10..e4514a18 100644 --- a/js/mzta-utils.js +++ b/js/mzta-utils.js @@ -345,19 +345,20 @@ export async function transformTagsLabels(labels, tags_list) { return output; } -export function getActiveSpecialPromptsIDs(addtags = false, get_calendar_event = false, get_task = false, is_chatgpt_web = false) { +export function getActiveSpecialPromptsIDs(args = {}) { + const { addtags = false, get_calendar_event = false, get_task = false, is_chatgpt_web = false } = args; let output = []; - // console.log(">>>>>>>>>> getActiveSpecialPromptsIDs addtags: " + addtags + " get_calendar_event: " + get_calendar_event + " is_chatgpt_web: " + is_chatgpt_web); - if(is_chatgpt_web){ + // console.log(">>>>>>>>>> getActiveSpecialPromptsIDs args: " + JSON.stringify(args)); + if (is_chatgpt_web) { return output; } - if(addtags){ + if (addtags) { output.push('prompt_add_tags'); } - if(get_calendar_event){ + if (get_calendar_event) { output.push('prompt_get_calendar_event'); } - if(get_task){ + if (get_task) { output.push('prompt_get_task'); } // console.log(">>>>>>>>>> getActiveSpecialPromptsIDs output: " + JSON.stringify(output));