That's the polyfill. It is added for the browsers where the support is not in built like, safari.. Also in Firefox latest, it will work without polyfill but the backdrop style will not work.
Chrome is very generous.. It works in chrome without the polyfill.
Thanks for reading through.. Appreciate.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good information!
But what does it mean code below,
dialogPolyfill.registerDialog();
when I commenting this, It works too
That's the polyfill. It is added for the browsers where the support is not in built like, safari.. Also in Firefox latest, it will work without polyfill but the backdrop style will not work.
Chrome is very generous.. It works in chrome without the polyfill.
Thanks for reading through.. Appreciate.