koishi-plugin-starfx-bot 0.26.1 → 0.26.3

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.
@@ -279,7 +279,7 @@
279
279
  }
280
280
 
281
281
  try {
282
- const res = await fetch(`/songRoom/api/${roomId}`, {
282
+ const res = await fetch(`api/${roomId}`, {
283
283
  method: 'POST',
284
284
  headers: { 'Content-Type': 'application/json' },
285
285
  body: JSON.stringify({
@@ -406,7 +406,7 @@
406
406
  const load = async () => {
407
407
  if (isDragging.value) return;
408
408
  try {
409
- const url = `/songRoom/api/${roomId}?lastHash=${lastHash.value}`;
409
+ const url = `api/${roomId}?lastHash=${lastHash.value}`;
410
410
  const res = await fetch(url).then(r => r.json());
411
411
 
412
412
  if (res.changed) {
package/lib/index.js CHANGED
@@ -65,7 +65,7 @@ var package_default = {
65
65
  contributors: [
66
66
  "StarFreedomX <starfreedomx@outlook.com>"
67
67
  ],
68
- version: "0.26.0",
68
+ version: "0.26.2",
69
69
  main: "lib/index.js",
70
70
  typings: "lib/index.d.ts",
71
71
  files: [
@@ -1858,7 +1858,7 @@ function apply(ctx, cfg) {
1858
1858
  function joinRoom() {
1859
1859
  const id = document.getElementById('roomInput').value.trim();
1860
1860
  if (id) {
1861
- window.location.href = \`/songRoom/\${id}\`;
1861
+ window.location.href = \`\${id}\`;
1862
1862
  }
1863
1863
  }
1864
1864
  // 支持回车键跳转
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "contributors": [
5
5
  "StarFreedomX <starfreedomx@outlook.com>"
6
6
  ],
7
- "version": "0.26.1",
7
+ "version": "0.26.3",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
10
10
  "files": [