async promise

PHOTO EMBED

Sat Mar 05 2022 04:48:25 GMT+0000 (UTC)

Saved by @mboljar

myFunction().then((value) => {
  console.log(value);
}).catch((err) => {
  console.log(err);
});
content_copyCOPY

https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers