I've asked this question. At first it was more general, because I didn't understand how changing backend stuff caused issues with the front-end UI elements that were completely unrelated. I later realized that the root of the problem was running Electron through an administrator PowerShell window. I quickly edited the question to reflect that, then googled and immediately found out the answer in Electron's issues page on GitHub.
Usually when I answer myself, I either leave the question if I think it has value for others or delete it if I think it doesn't. This is a weird one though, because I don't know which to choose - if someone else encounters this issue, he'll either figure out what's the cause and immediately find the solution on GitHub just like I did or have used administrator-PowerShell for completely unrelated reasons to my own and probably won't find my question at all.
In other words: my question only has value for people who don't know the cause of the problem, meaning they can't find my question, and the people who figure out the cause of the problem will be able to find my question, but it won't pose any value to them.
What's the thing to do here?