diff options
author | 2023-01-16 21:20:55 +0000 | |
---|---|---|
committer | 2023-01-16 21:20:55 +0000 | |
commit | 57a2373dde8f8aa0a59d6727323350d6d17f4f16 (patch) | |
tree | 90c068382f865cf4930bccdc4542673d858d1700 /recipes | |
parent | Upgrade 'nodejs' to '18.13.0' (diff) | |
download | ferdium-recipes-57a2373dde8f8aa0a59d6727323350d6d17f4f16.tar.gz ferdium-recipes-57a2373dde8f8aa0a59d6727323350d6d17f4f16.tar.zst ferdium-recipes-57a2373dde8f8aa0a59d6727323350d6d17f4f16.zip |
feat: add darkmode to chatgpt recipe (#290)
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/chatgpt/package.json | 2 | ||||
-rw-r--r-- | recipes/chatgpt/webview.js | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/recipes/chatgpt/package.json b/recipes/chatgpt/package.json index aeed764..f5dbfbc 100644 --- a/recipes/chatgpt/package.json +++ b/recipes/chatgpt/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "chatgpt", | 2 | "id": "chatgpt", |
3 | "name": "ChatGPT", | 3 | "name": "ChatGPT", |
4 | "version": "1.0.0", | 4 | "version": "1.0.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://chat.openai.com/chat" | 7 | "serviceURL": "https://chat.openai.com/chat" |
diff --git a/recipes/chatgpt/webview.js b/recipes/chatgpt/webview.js index dd41f72..2ebc1f3 100644 --- a/recipes/chatgpt/webview.js +++ b/recipes/chatgpt/webview.js | |||
@@ -1 +1,5 @@ | |||
1 | module.exports = Ferdium => Ferdium; | 1 | module.exports = Ferdium => { |
2 | Ferdium.handleDarkMode(isEnabled => { | ||
3 | localStorage.setItem('theme', isEnabled ? 'dark' : 'light' ); | ||
4 | }); | ||
5 | }; | ||