mirror of https://github.com/onweru/compose.git

weru
06.19.2023 959873b3cd6993255e3f49caee7437fbb3848271
assets/js/functions.js
@@ -172,15 +172,11 @@
  }
}
function loadSvg(file, parent, path = iconsPath) {
  const link = new URL(`${path}${file}.svg`, root_url).href;
  fetch(link)
  .then((response) => {
    return response.text();
  })
  .then((svg_data) => {
    parent.innerHTML = svg_data;
  });
function loadSvg(icon, parent) {
  parent.innerHTML = `
  <svg class="icon_${icon}">
    <use xlink:href="#${icon}"></use>
  </svg>`;
}
function copyToClipboard(str) {