Convert promise chains to async/await
Background
Since we no longer support Chromium <55 and Firefox <52, there is a better way to write code dealing with promises now, leveraging async
functions and await
statements.
What to change
Convert existing code that is using Promise#then()
to use async
and await
instead.