Skip to content

Commit

Permalink
fix: remove md conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 authored Mar 6, 2024
1 parent 1e1584b commit 6b58def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class ChatGPTButtonHandler extends plugin {

async btnHandler (e, options, reject) {
// logger.mark('[chatgpt按钮处理器]')
if (!Config.enableMd || (e.adapter !== 'shamrock' && (!segment.button || segment.button(1)?.content !== 1))) {
if (!Config.enableMd)) {
return null
}
const fnc = e.logFnc
Expand Down

0 comments on commit 6b58def

Please # to comment.