Skip to content

Commit

Permalink
Fix clearing messages Map()
Browse files Browse the repository at this point in the history
  • Loading branch information
spdustin authored Nov 30, 2023
1 parent c2b82ae commit 4053667
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoExpertChatGPTDebugHelper.user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// ==UserScript==
// @name ChatGPT Debug Helper 1.1.4
// @name ChatGPT Debug Helper 1.1.5
// @author Dustin Miller <[email protected]>
// @namespace https://spdustin.substack.com
// @version 1.1.4
// @version 1.1.5
// @description Adds some helpful debugging tools to the ChatGPT UI
// @run-at document-idle
// @match https://chat.openai.com/*
Expand All @@ -23,7 +23,7 @@ const CI_MODAL_TRIGGER = new KeyboardEvent("keydown", {
bubbles: true,
});
const originalFetch = window.fetch;
const messages = new Map();
let messages = new Map();

class AEDataService {
static MAX_RETRIES = 3;
Expand Down Expand Up @@ -167,7 +167,7 @@ async function setup() {
if (panelDebug) {
panelDebug.innerHTML = "";
}
messages = [];
messages = new Map();
},
},
{
Expand Down

0 comments on commit 4053667

Please sign in to comment.