claude-export icon indicating copy to clipboard operation
claude-export copied to clipboard

`chatContainer` is `null`

Open 7shi opened this issue 1 year ago • 0 comments

The class of the chat container seems to have changed and chatContainer is null.

<div class="flex-1  flex  flex-col  gap-3  px-4  max-w-3xl  mx-auto  w-full pt-12 md:pt-16">

It may change again, so I cut it and it works.

--- a/src/util/getContents.js
+++ b/src/util/getContents.js
@@ -1,7 +1,7 @@
 module.exports = function () {
     // Get parent chat container
     const chatContainer = document.querySelector(
-        "div.flex-1.flex.flex-col.gap-3.px-4.pt-16"
+        "div.flex-1.flex.flex-col.gap-3.px-4"
     );

     // Get chat title (if exists)

7shi avatar Apr 30 '24 12:04 7shi