Even if you were equally proficient in C++ and JavaScript, you can't tell me that Electron isn't significantly more productive.
Well, there's one exception - it sure is more productive if you already have a webapp to reuse.
This is why I hate this industry.
And it's not just about money. With Discord as an example, they are able to quickly develop and deliver a great product, iterate on new features and integrations, and support all major platforms including web browsers. Their choice to use a web based stack helps A LOT with this.