Hi all,
I found a weird problem about confirm window in chrome extension. My extension needs a confirm window for user before they want to delete some datas. But I found that the confirm window shows up in a very brief time and causes extension closed automatically. My do some experiment, and found that confirm window has problem in callback function.
For example, in app.js
var showConfirm = function() {
confirm('Are you sure?');
};
showConfirm();
is okay, but in app.js
setTimeout(showConfirm, 1000);
is not okay.
My platform is OSX, and using chrome v31.0.
Do I do anything wrong? Any opinions/ideas are welcome.
Thanks.