Skip to content

Commit 204039d

Browse files
committed
Replaced unbound this in getters ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent 04cc6b9 commit 204039d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.10.21.1
151+
// @version 2025.10.21.2
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
154154
// @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
@@ -262,8 +262,8 @@
262262
} ; ['Chromium', 'Firefox', 'Chrome', 'Edge', 'Brave', 'Mobile'].forEach(platform =>
263263
env.browser[`is${ platform == 'Firefox' ? 'FF' : platform }`] = chatgpt.browser['is' + platform]())
264264
Object.assign(env.browser, {
265-
get isPortrait() { return this.isMobile && (innerWidth < innerHeight) },
266-
get isPhone() { return this.isMobile && innerWidth <= 480 }
265+
get isPortrait() { return env.browser.isMobile && (innerWidth < innerHeight) },
266+
get isPhone() { return env.browser.isMobile && innerWidth <= 480 }
267267
})
268268
env.userLocale = env.browser.language.includes('-') ? env.browser.language.split('-')[1].toLowerCase() : ''
269269
env.scriptManager.supportsStreaming = /Tampermonkey|ScriptCat/.test(env.scriptManager.name)

0 commit comments

Comments
 (0)