artalk 2.9.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6747,7 +6747,7 @@ const GotoFocus = (ctx) => {
6747
6747
  comment.focus();
6748
6748
  }));
6749
6749
  };
6750
- const version = "2.9.0";
6750
+ const version = "2.9.1";
6751
6751
  const Copyright = (ctx) => {
6752
6752
  ctx.on("mounted", () => {
6753
6753
  const list = ctx.get("list");
@@ -7209,7 +7209,7 @@ function loadNetworkPlugins(scripts, apiBase) {
7209
7209
  if (!/^(http|https):\/\//.test(url))
7210
7210
  url = `${apiBase.replace(/\/$/, "")}/${url.replace(/^\//, "")}`;
7211
7211
  tasks.push(
7212
- new Promise((resolve, reject) => {
7212
+ new Promise((resolve) => {
7213
7213
  if (document.querySelector(`script[src="${url}"]`)) {
7214
7214
  resolve();
7215
7215
  return;
@@ -7218,7 +7218,10 @@ function loadNetworkPlugins(scripts, apiBase) {
7218
7218
  script.src = url;
7219
7219
  document.head.appendChild(script);
7220
7220
  script.onload = () => resolve();
7221
- script.onerror = (err) => reject(err);
7221
+ script.onerror = (err) => {
7222
+ console.error("[artalk] Failed to load plugin", err);
7223
+ resolve();
7224
+ };
7222
7225
  })
7223
7226
  );
7224
7227
  });