working fine for me here, I checked my example on mac and windows and the embeds are operating correctly.
Your issues suggests you are using an outdated version of electron, (the method changed in a recent version slightly iirc) or you are not binding your removal function corretly.
For completeness I also adjusted my github example to build/become packaged, and this is the result: working fine.

