Skip to content

Commit ff92083

Browse files
committed
Added optional chaining to elem.click()s ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/amazongpt]
1 parent 4e03578 commit ff92083

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Add AI chat & product/category summaries to Amazon shopping, powered by the latest LLMs like GPT-4o!
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.10.19.3
6+
// @version 2025.10.20
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon48.png?v=8e8ed1c
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/app/black-gold-teal/icon64.png?v=8e8ed1c
@@ -733,7 +733,7 @@
733733
msg = msg.replace(switchPhrase, `<a class="alert-link" href="#">${switchPhrase}</a>`)
734734
const alert = modals.alert(`${app.msgs.mode_streaming} ${app.msgs.alert_unavailable}`, msg)
735735
alert.querySelector('[href="#"]').onclick = () => {
736-
alert.querySelector('.modal-close-btn').click() ; toggle.proxyMode() }
736+
alert.querySelector('.modal-close-btn')?.click() ; toggle.proxyMode() }
737737
} else { // functional toggle
738738
settings.save('streamingDisabled', !config.streamingDisabled)
739739
feedback.notify(`${settings.controls.streamingDisabled.label} ${

0 commit comments

Comments
 (0)