mirror of
https://github.com/leoncvlt/loconotion.git
synced 2024-08-30 18:12:12 +00:00
Run dark mode script hack based on configuration parameter
This commit is contained in:
parent
a007681f72
commit
a404b5a34f
@ -261,6 +261,11 @@ class Parser:
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# light theme is on by default
|
||||||
|
# enable dark mode based on https://fruitionsite.com/ dark mode hack
|
||||||
|
if self.config.get('theme') == 'dark':
|
||||||
|
self.driver.execute_script("__console.environment.ThemeStore.setState({ mode: 'dark' });")
|
||||||
|
|
||||||
# scroll at the bottom of the notion-scroller element to load all elements
|
# scroll at the bottom of the notion-scroller element to load all elements
|
||||||
# continue once there are no changes in height after a timeout
|
# continue once there are no changes in height after a timeout
|
||||||
# don't do this if the page has a calendar databse on it or it will load forever
|
# don't do this if the page has a calendar databse on it or it will load forever
|
||||||
|
Loading…
Reference in New Issue
Block a user