Skip to content

Commit 94413db

Browse files
committed
Renamed appIs<High|Low> to more accurate appIsToo<High|Low> ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/amazongpt]
1 parent dca1d8f commit 94413db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 4 additions & 4 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.4.21.1
6+
// @version 2025.4.21.2
77
// @license MIT
88
// @icon https://cdn.jsdelivr.net/gh/KudoAI/amazongpt@0fddfc7/assets/images/icons/amazongpt/black-gold-teal/icon48.png
99
// @icon64 https://cdn.jsdelivr.net/gh/KudoAI/amazongpt@0fddfc7/assets/images/icons/amazongpt/black-gold-teal/icon64.png
@@ -1466,10 +1466,10 @@
14661466
appDiv: appDiv.getBoundingClientRect(), toggleBtn: toggleElem.getBoundingClientRect(),
14671467
hoverMenu: hoverMenus[menuType].div.getBoundingClientRect()
14681468
}
1469-
const appIsHigh = rects.toggleBtn.top < ( rects.hoverMenu.height +15 ),
1470-
appIsLow = rects.hoverMenu.bottom > ( innerHeight -15 )
1469+
const appIsTooHigh = rects.toggleBtn.top < ( rects.hoverMenu.height +15 ),
1470+
appIsTooLow = rects.hoverMenu.bottom > ( innerHeight -15 )
14711471
hoverMenus[menuType].div.style.top = `${ rects.toggleBtn.top - rects.appDiv.top +(
1472-
menuType == 'pin' && appIsHigh || menuType == 'api' && !appIsLow
1472+
menuType == 'pin' && appIsTooHigh || menuType == 'api' && !appIsTooLow
14731473
? /* point down */ 29 : /* point up */ - rects.hoverMenu.height -13 )}px`
14741474
hoverMenus[menuType].rightPos = hoverMenus[menuType].rightPos
14751475
|| rects.appDiv.right - event.clientX - hoverMenus[menuType].div.offsetWidth/2

0 commit comments

Comments
 (0)