confirm is a part of an undocumented API that block the UI thread ( https://developer.mozilla.org/en-US/docs/DOM/window.confirm ),
I had to use a signature of confirm(text, callback) instead of just confirm(text).
This works. Thank you!
After actually trying to use this with some areas where confirms make sense, I've run into a couple issues. See #5
Yeah, after I send the PR, I noticed the problem, but was super behind on a project at the time... Sorry about that.
Not a problem! You did all the hard work!