Huh, weird that Electron doesn't support prompt. It's not exactly a "best practice", but sometimes you just need a modal, man.
Did you end using <dialog> in your replacement? They have some special interaction with forms that make them a little more convenient to use.