aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/chatgpt/webview.js
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2023-01-16 21:20:55 +0000
committerLibravatar GitHub <noreply@github.com>2023-01-16 21:20:55 +0000
commit57a2373dde8f8aa0a59d6727323350d6d17f4f16 (patch)
tree90c068382f865cf4930bccdc4542673d858d1700 /recipes/chatgpt/webview.js
parentUpgrade 'nodejs' to '18.13.0' (diff)
downloadferdium-recipes-57a2373dde8f8aa0a59d6727323350d6d17f4f16.tar.gz
ferdium-recipes-57a2373dde8f8aa0a59d6727323350d6d17f4f16.tar.zst
ferdium-recipes-57a2373dde8f8aa0a59d6727323350d6d17f4f16.zip
feat: add darkmode to chatgpt recipe (#290)
Diffstat (limited to 'recipes/chatgpt/webview.js')
-rw-r--r--recipes/chatgpt/webview.js6
1 files changed, 5 insertions, 1 deletions
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 @@
1module.exports = Ferdium => Ferdium; 1module.exports = Ferdium => {
2 Ferdium.handleDarkMode(isEnabled => {
3 localStorage.setItem('theme', isEnabled ? 'dark' : 'light' );
4 });
5};