From https://github.com/vector-im/vector-web/pull/2511 but with just the actual electron changes
Provide WebPlatform for functionality specific to the web version of vector.