lencx / ChatGPT

🔮 ChatGPT Desktop Application (Mac, Windows and Linux)
https://nofwl.com
51.74k stars 5.81k forks source link

[Bug] Export to PDF does not complete #1132

Open Luke717 opened 8 months ago

Luke717 commented 8 months ago

Non-ChatGPT bug

Version

v1.1.0

Bug description

Clicking on the PDF icon to export to PDF produces "Exporting in progress" text overlay, but the action does not complete. Need to Ctrl-R to refresh the screen to get rid of overlay.

OS

Windows 11 Pro 23H2 build 22631.2506

Environment

No response

SilenceIronMan commented 8 months ago

I think it is caused by the change of gpt front-end style,Please Edit Preference -> Control center ->Scripts -> export.js, remove lines 114, 143, 170 code related to ‘'spacer'.

cszmzh commented 8 months ago

I think it is caused by the change of gpt front-end style,Please Edit Preference -> Control center ->Scripts -> export.js, remove lines 114, 143, 170 code related to ‘'spacer'.

I tried this method and it didn't seem to work.

jinbingzhi0931 commented 8 months ago

edit export.js replace: 114:this.spacer = document.querySelector("main div[class='left-0'][class='top-1/2']").querySelector("button"); 143:this.spacer.click(); 170:this.spacer.click();

TransPete commented 7 months ago

Export now works ok for short chats but does not format properly for long chats. Anyway to correct this? ExportPDF fix5