fixed prompts numbering in the compose window menu
This commit is contained in:
parent
0d0d157d35
commit
235ee26533
1 changed files with 3 additions and 2 deletions
|
|
@ -22,6 +22,7 @@ let menuSendImmediately = false;
|
||||||
let taLog = console;
|
let taLog = console;
|
||||||
let connection_type = 'chatgpt_web';
|
let connection_type = 'chatgpt_web';
|
||||||
let add_tags = false;
|
let add_tags = false;
|
||||||
|
let tabType;
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', async () => {
|
document.addEventListener('DOMContentLoaded', async () => {
|
||||||
let prefs = await browser.storage.sync.get({do_debug: false, dynamic_menu_force_enter: false, add_tags: false, connection_type: 'chatgpt_web'});
|
let prefs = await browser.storage.sync.get({do_debug: false, dynamic_menu_force_enter: false, add_tags: false, connection_type: 'chatgpt_web'});
|
||||||
|
|
@ -30,7 +31,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
let reponse = await browser.runtime.sendMessage({command: "popup_menu_ready"});
|
let reponse = await browser.runtime.sendMessage({command: "popup_menu_ready"});
|
||||||
taLog.log("Preparing data to load the popup menu: " + JSON.stringify(reponse));
|
taLog.log("Preparing data to load the popup menu: " + JSON.stringify(reponse));
|
||||||
let tabId = reponse.lastShortcutTabId;
|
let tabId = reponse.lastShortcutTabId;
|
||||||
let tabType = reponse.lastShortcutTabType;
|
tabType = reponse.lastShortcutTabType;
|
||||||
let filtering = reponse.lastShortcutFiltering;
|
let filtering = reponse.lastShortcutFiltering;
|
||||||
let _prompts_data = reponse.lastShortcutPromptsData;
|
let _prompts_data = reponse.lastShortcutPromptsData;
|
||||||
taLog.log("_prompts_data: " + JSON.stringify(_prompts_data));
|
taLog.log("_prompts_data: " + JSON.stringify(_prompts_data));
|
||||||
|
|
@ -284,7 +285,7 @@ function filterPromptsForTab(prompts_data, filtering){
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkDoAddTags(){
|
function checkDoAddTags(){
|
||||||
return add_tags && (connection_type !== "chatgpt_web");
|
return add_tags && (connection_type !== "chatgpt_web" && tabType !== 'messageCompose');
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensurePromptAddTagsFirst(arr) {
|
function ensurePromptAddTagsFirst(arr) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue