Skip to content

Commit

Permalink
Create insert_or_dark_mode command (i.e. add decorator) (emacs-eaf#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalanicolai authored Jan 14, 2021
1 parent b6a7c71 commit 62e5e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def clear_focus(self):
''' Clear the focus.'''
self.eval_js(self.clear_focus_js)

@interactive()
@interactive(insert_or_do=True)
def dark_mode(self):
''' Dark mode support.'''
self.eval_js(self.dark_mode_js)
Expand Down

0 comments on commit 62e5e34

Please sign in to comment.