DEV Community

Discussion on: Flexibility and Boundaries in a Business Environment

 
aumayeung profile image
John Au-Yeung

I think you can check if the showModal method is a function.

If it is, then you can display the dialog element. Otherwise, you display an alert.