#188·winbox

Async function does not take affect

Author: hevilhuyCreated Oct 6, 2024Updated Dec 9, 2024

This is the reproduce code: let winbox = new WinBox(title, { html: rootElement.innerHTML, onclose: async function (force) { return false; }, }

If I change to the below then it works=

let winbox = new WinBox(title,
    {
        html: rootElement.innerHTML,
        onclose: function (force)
        {
            return false;
        },
     }