showModalDialog icon indicating copy to clipboard operation
showModalDialog copied to clipboard

return statement fails

Open msight-ar opened this issue 2 years ago • 0 comments

I have a function like this:

`function HandlePopup() { var returnValue = window.showModalDialog(url [,args,opt]);

return returnValue != "--cancel--"; }`

So, in this example, what happens is that when performing the eval, I observe that the function declaration is eliminated, preventing a value from being returned.

I depend on the boolean result to continue, I have no other way.

How can I fix this situation?

msight-ar avatar May 24 '22 12:05 msight-ar