Skip to content

Commit

Permalink
liniting probably
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur-Huan committed Aug 22, 2024
1 parent 7eef7b9 commit 4f71f3e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/messenger/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ module.exports = (Ferdium, settings) => {
true,
);

if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
if (
window.matchMedia &&
window.matchMedia('(prefers-color-scheme: dark)').matches
) {
Ferdium.injectCSS(_path.default.join(__dirname, 'darkmode.css'));
}

};

0 comments on commit 4f71f3e

Please sign in to comment.