Removal of the showModalDialog API

前端 未结 3 1035
迷失自我
迷失自我 2021-01-13 12:12

With the impending removal of the showModalDialog API from various browsers, our company like many others who provide large scale enterprise web applica

3条回答
  •  感动是毒
    2021-01-13 12:35

    You can avoid using callback functions by using my showModalDialog polyfill, which pauses execution of subsequent statements until the modal is closed. It does so by using generators, promises and the yield keyword. It works in the newest Opera and Google Chrome.

提交回复
热议问题