Skip to content

Commit 4d7bcb1

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

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

chatgpt/bravegpt/bravegpt.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-Brave Search (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.bravegpt.com/images/icons/app/icon48.png?v=e8ca7c2
154154
// @icon64 https://assets.bravegpt.com/images/icons/app/icon64.png?v=e8ca7c2
@@ -261,8 +261,8 @@
261261
} ; ['Chromium', 'Firefox', 'Chrome', 'Edge', 'Brave', 'Mobile'].forEach(platform =>
262262
env.browser[`is${ platform == 'Firefox' ? 'FF' : platform }`] = chatgpt.browser['is' + platform]())
263263
Object.assign(env.browser, {
264-
get isPortrait() { return this.isMobile && (innerWidth < innerHeight) },
265-
get isPhone() { return this.isMobile && innerWidth <= 480 }
264+
get isPortrait() { return env.browser.isMobile && (innerWidth < innerHeight) },
265+
get isPhone() { return env.browser.isMobile && innerWidth <= 480 }
266266
})
267267
env.userLocale = env.browser.language.includes('-') ? env.browser.language.split('-')[1].toLowerCase() : ''
268268
env.scriptManager.supportsStreaming = /Tampermonkey|ScriptCat/.test(env.scriptManager.name)

0 commit comments

Comments
 (0)