I use the obsidian-pomodoro-timer and i was pretty happy with it. However, i think an update changed something because now the timer does not run on the background. I’ve written about the issue more in detail in the plugin’s repo:
Upon further testing, it was due to my plugin count. After i close random amount of plugins, the timer starts working normally. The code that is responsible for running the clock uses Worker. Is there a way that it can be a priority if it is being culled by memory management of Obsidian? Or any other fix ideas, like rewriting the plugin without Worker?
I don’t know about JS, so my question is, if I’ve to embed your new code as raw like in the original or if I need to create a new function call for it.
As I see it, your code needs to be embedded as raw because the original self.onmessage call that you modified is just one part of the code in function inlineWorker.
Maybe I’m lazy to insert \n and escape chars to modify your code to raw code, but before I do this, I’d like to get your confirmation as I’m not interested to experiment around. Thanks for the rewrite anyway.