WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Nov 16, 2025. It is now read-only.

Commit 0ac4c57

Browse files
committed
fix(whale): Change emotion injection point to HEAD for whale browser
1 parent deee676 commit 0ac4c57

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "ChatGPT Augment",
4-
"version": "1.8.0",
4+
"version": "1.8.2",
55
"description": "Enhance chat with ChatGPT-Augment: auto-continue, macros, token count, prompts, gradients, JSON format.",
66
"content_scripts": [
77
{

src/App.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ import { useCgptColorScheme } from "./lib/hooks/useColorScheme";
2121
import { useRootAnchor } from "./lib/hooks/useTarget";
2222
import { useElsUpdater } from "./lib/hooks/workers/useElements";
2323

24-
const cache = createEmotionCache({
25-
key: "cgpt-agmt",
26-
insertionPoint: document.body,
27-
});
24+
const container = document.getElementsByTagName("head")[0];
25+
let cache = createEmotionCache({ key: "cgpt-agmt", container });
2826

2927
export const App = () => {
3028
const [colorScheme, setTheme] = useCgptColorScheme();
@@ -58,7 +56,7 @@ export const App = () => {
5856
setTheme(theme || ("system" as unknown as "light"))
5957
}
6058
>
61-
<MantineProvider emotionCache={cache} theme={{ colorScheme }}>
59+
<MantineProvider emotionCache={cache!} theme={{ colorScheme }}>
6260
<Group style={wrapperStyle} align="center" position="center">
6361
<Transition
6462
mounted={!!width && mounted}

0 commit comments

Comments
 (0)