diff options
Diffstat (limited to 'recipes/chatgpt/webview.js')
-rw-r--r-- | recipes/chatgpt/webview.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes/chatgpt/webview.js b/recipes/chatgpt/webview.js index 2ebc1f3..a471ad3 100644 --- a/recipes/chatgpt/webview.js +++ b/recipes/chatgpt/webview.js | |||
@@ -1,5 +1,13 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
1 | module.exports = Ferdium => { | 7 | module.exports = Ferdium => { |
2 | Ferdium.handleDarkMode(isEnabled => { | 8 | Ferdium.handleDarkMode(isEnabled => { |
3 | localStorage.setItem('theme', isEnabled ? 'dark' : 'light' ); | 9 | localStorage.setItem('theme', isEnabled ? 'dark' : 'light'); |
4 | }); | 10 | }); |
11 | |||
12 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
5 | }; | 13 | }; |