Github user kamrik commented on a diff in the pull request:

    
https://github.com/apache/cordova-plugin-dialogs/pull/46#discussion_r21702976
  
    --- Diff: www/browser/notification.js ---
    @@ -0,0 +1,94 @@
    +// Platform: browser
    +window.navigator.notification = window.navigator.notification || {};
    +
    +module.exports.alert = window.navigator.notification.alert = 
function(message, callback) {
    +    // `notification.alert` executes asynchronously
    +    setTimeout(function() {
    +        window.alert(message);
    --- End diff --
    
    I think this will block all of js execution until the dialog is dismissed?
    This shouldn't be an issue for many cases, but it will result in a 
different behavior compared to android implementation where it's completely 
async. Actually I was working on an async implementation of this for browser. 
So I would be glad if this goes in and then I'll add my part on top.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to