Removal of the showModalDialog API

前端 未结 3 1007
迷失自我
迷失自我 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:27

    You won't get around using asynchronous, event-based code.

    pragmatic workarounds to avoid having to re-factor the code manually?

    You can try a javascript-to-javascript compiler that brings the await keyword to js. It should automatically transpile your code to an asynchronous version.

    Disclaimer: I haven't used any of these

提交回复
热议问题