Change Nifty.confirm()'s promise to resolve or reject based on confirmation.