mirror of
https://github.com/lencx/ChatGPT.git
synced 2026-02-06 11:47:08 +00:00
fix: export icons
This commit is contained in:
parent
af77ee74b5
commit
7023b04dd2
13
scripts/export.js
vendored
13
scripts/export.js
vendored
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @name export.js
|
||||
* @version 0.1.2
|
||||
* @version 0.1.3
|
||||
* @url https://github.com/lencx/ChatGPT/tree/main/scripts/export.js
|
||||
*/
|
||||
|
||||
@ -15,12 +15,17 @@ async function exportInit() {
|
||||
|
||||
const chatConf = (await invoke('get_app_conf')) || {};
|
||||
window.buttonsInterval = setInterval(() => {
|
||||
const actionsArea = document.querySelector('form>div>div>div');
|
||||
const hasBtn = document.querySelector('form>div>div>div button');
|
||||
if (!actionsArea || !hasBtn) {
|
||||
const formArea = document.querySelector('form>div>div');
|
||||
const textarea = formArea.querySelector('div textarea');
|
||||
const textareaDiv = formArea.querySelector('div div.absolute');
|
||||
const hasBtn = formArea.querySelector('div button');
|
||||
|
||||
if (!formArea || (textarea && textareaDiv) || !hasBtn) {
|
||||
return;
|
||||
}
|
||||
|
||||
const actionsArea = document.querySelector('form>div>div>div');
|
||||
|
||||
if (shouldAddButtons(actionsArea)) {
|
||||
let TryAgainButton = actionsArea.querySelector('button');
|
||||
if (!TryAgainButton) {
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
},
|
||||
{
|
||||
"name": "export.js",
|
||||
"version": "0.1.2"
|
||||
"version": "0.1.3"
|
||||
},
|
||||
{
|
||||
"name": "markdown.export.js",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user