// retoor <retoor@molodetz.nl>
const STYLE_ID = "md-clippy-stylesheet";

export function ensureStylesheet() {
  if (document.getElementById(STYLE_ID)) return;

  const link = document.createElement("link");
  link.id = STYLE_ID;
  link.rel = "stylesheet";
  link.href = new URL("./md-clippy.css", import.meta.url).href;
  document.head.appendChild(link);
}
