message: make a function async
diff: @@ -45,11 +45,10 @@ const getVSCodeHoverBackgound = function () {
  return pickColor(s.background);
  }
  -const svgAsyncToPngDataUrl = function (svgdataurl) {
  +const svgAsyncToPngDataUrl = async function (svgdataurl) {
  const canvas = document.getElementById("canvas");
  const ctx = canvas.getContext("2d");
  - return loadImg(svgdataurl)
  - .then( (img) => {
  + const img = await loadImg(svgdataurl);
  const rgb = getVSCodeHoverBackgound();
  canvas.width = img.width;
  canvas.height = img.height;
  @@ -58,7 +57,6 @@ const svgAsyncToPngDataUrl = function (svgdataurl) {
  ctx.drawImage(img, 0, 0);
  img.src = "";
  return canvas.toDataURL("image/png");
  - });
  }
  const loadImg = function (url) {
  