Skip to content

Commit 8961fb4

Browse files
committed
Eliminated no-longer needed msgs init from Share button handler ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/amazongpt]
1 parent 10648a4 commit 8961fb4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

greasemonkey/amazongpt.user.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @description Adds the magic of AI to Amazon shopping
44
// @author KudoAI
55
// @namespace https://kudoai.com
6-
// @version 2025.3.19.4
6+
// @version 2025.3.20
77
// @license MIT
88
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
99
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
@@ -3092,11 +3092,10 @@
30923092
shareBtn.style.animation = 'spinY 1s linear infinite'
30933093
shareBtn.style.cursor = 'default' // remove finger
30943094
toggle.tooltip(event) // update tooltip
3095-
const msgs = [...prompts.stripAugments(msgChain)]
30963095
xhr({
30973096
method: 'POST', url: 'https://chat-share.kudoai.workers.dev',
30983097
headers: { 'Content-Type': 'application/json', 'Referer': location.href },
3099-
data: JSON.stringify({ messages: msgs }),
3098+
data: JSON.stringify({ messages: [...prompts.stripAugments(msgChain)] }),
31003099
onload: resp => {
31013100
const shareURL = JSON.parse(resp.responseText).url
31023101
show.reply.shareURL = shareURL ; modals.shareChat(shareURL)

0 commit comments

Comments
 (0)