mirror of
https://github.com/pionxzh/chatgpt-exporter.git
synced 2026-09-21 13:37:42 -05:00
fix: model bar should be hide correctly
This commit is contained in:
@@ -21,11 +21,8 @@ export async function exportToPng(fileNameFormat: string) {
|
||||
const effect = new Effect()
|
||||
|
||||
// hide model bar
|
||||
const modelBar = Array.from(thread.children).find((el) => {
|
||||
const text = el.textContent
|
||||
return text === 'Model: Default' || text === 'Model: Legacy' || text === 'Model: GPT-4'
|
||||
})
|
||||
if (modelBar) {
|
||||
const modelBar = thread.firstElementChild
|
||||
if (modelBar?.textContent?.startsWith('Model:')) {
|
||||
effect.add(() => {
|
||||
modelBar.classList.add('hidden')
|
||||
return () => modelBar.classList.remove('hidden')
|
||||
|
||||
Reference in New Issue
Block a user