canvas.createContext("webgl") returns null in Electron

Almost certainly, no it doesn’t. Please see Snap and executable stacks