xmoj-script 1.2.38 → 1.2.39

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.
package/Update.json CHANGED
@@ -2168,6 +2168,17 @@
2168
2168
  }
2169
2169
  ],
2170
2170
  "Notes": "No release notes were provided for this release."
2171
+ },
2172
+ "1.2.39": {
2173
+ "UpdateDate": 1723095200260,
2174
+ "Prerelease": true,
2175
+ "UpdateContents": [
2176
+ {
2177
+ "PR": 658,
2178
+ "Description": "error reporting for image upload"
2179
+ }
2180
+ ],
2181
+ "Notes": "No release notes were provided for this release."
2171
2182
  }
2172
2183
  }
2173
2184
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.2.38
3
+ // @version 1.2.39
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -4230,7 +4230,7 @@ int main()
4230
4230
  Content.value = Before + `![](https://assets.xmoj-bbs.me/GetImage?ImageID=${ResponseData.Data.ImageID})` + After;
4231
4231
  Content.dispatchEvent(new Event("input"));
4232
4232
  } else {
4233
- Content.value = Before + `![上传失败!]()` + After;
4233
+ Content.value = Before + `![上传失败!` + ResponseData.Message + `]()` + After;
4234
4234
  Content.dispatchEvent(new Event("input"));
4235
4235
  }
4236
4236
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.2.38",
3
+ "version": "1.2.39",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {