Closed Mara-Li closed 2 years ago
As I use eslint, maybe create an eslint configuration specific for the repo ?
Ah, that'd be why, because I don't run eslint, I'll look into possibly adding an eslint config. For now only errors/warnings by the Typescript compiler or that happen directly in the Obsidian dev console are my main concerns.
Hi. I notice this fix doesn't work on mobile. Don't know why :/
See #12
I added a little sleep
onLayoutReady
because, when Obsidian open, it returnnull
withquerySelector
. Waiting a little the DOM loading resolve this. I use a 50 ms, but 0 or 1 ms work too. As I was afraid of breaking Obsidian, I prefer to use 50 ms.I also removed the unnecessary semicolon.