From 57a2373dde8f8aa0a59d6727323350d6d17f4f16 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Mon, 16 Jan 2023 21:20:55 +0000 Subject: feat: add darkmode to chatgpt recipe (#290) --- recipes/chatgpt/package.json | 2 +- recipes/chatgpt/webview.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'recipes') 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 @@ { "id": "chatgpt", "name": "ChatGPT", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "config": { "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 @@ -module.exports = Ferdium => Ferdium; +module.exports = Ferdium => { + Ferdium.handleDarkMode(isEnabled => { + localStorage.setItem('theme', isEnabled ? 'dark' : 'light' ); + }); +}; -- cgit v1.2.3-54-g00ecf