Electron sleep problems, yet again

I have reformatted your code blocks.
If you want to know how it's done, you can go into the post via the edit icon :memo: or look in this thread