async registerElement('$variable_id', function () {
  try {
    await refreshString('$element_id', 'textContent', '$data_uri');
  } catch {
  }
});

registerElement('$variable_id', async function () {
  try {
    await refreshString('$element_id', 'textContent', '$data_uri');
  } catch {
  }
});

Put async in right place
Put async in right place
