Skip to content

Commit b7c9a74

Browse files
committed
Replaced unbound this in getters ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/amazongpt]
1 parent f4befd7 commit b7c9a74

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

chatgpt/amazongpt/amazongpt.user.js

Lines changed: 3 additions & 3 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.21
6+
// @version 2025.10.21.1
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
@@ -140,8 +140,8 @@
140140
} ; ['Chromium', 'Firefox', 'Chrome', 'Edge', 'Brave', 'Mobile'].forEach(platform =>
141141
env.browser[`is${ platform == 'Firefox' ? 'FF' : platform }`] = chatgpt.browser['is' + platform]())
142142
Object.assign(env.browser, {
143-
get isPortrait() { return this.isMobile && (innerWidth < innerHeight) },
144-
get isPhone() { return this.isMobile && innerWidth <= 480 }
143+
get isPortrait() { return env.browser.isMobile && (innerWidth < innerHeight) },
144+
get isPhone() { return env.browser.isMobile && innerWidth <= 480 }
145145
})
146146
env.scriptManager.supportsStreaming = /Tampermonkey|ScriptCat/.test(env.scriptManager.name)
147147
env.scriptManager.supportsTooltips = env.scriptManager.name == 'Tampermonkey'

0 commit comments

Comments
 (0)