Skip to content

Commit

Permalink
Increase character limits
Browse files Browse the repository at this point in the history
  • Loading branch information
ZXMushroom63 committed Sep 8, 2024
1 parent 266eda5 commit 1f32472
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/apidoc/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ ModAPI.meta contains the API for registering metadata on mods easily.

Methods:
- `ModAPI.meta.title(title: String)`
- Sets the title of the mod. This is mandatory if any metadata is to be displayed. Character limit of 14.
- Sets the title of the mod. This is mandatory if any metadata is to be displayed. Character limit of 16.
- `ModAPI.meta.credits(credits: String)`
- Sets the credits of the mod. Character limit of 16.
- Sets the credits of the mod. Character limit of 24.
- `ModAPI.meta.description(desc: String)`
- Sets the description of the mod. Character limit of 64.
- `ModAPI.meta.icon(iconURL: String)`
Expand Down
4 changes: 2 additions & 2 deletions postinit.injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ globalThis.modapi_postinit = `(() => {
if (!document.currentScript.hasAttribute("data-hash")) {
return console.log("[ModAPIMeta] Script does not have a hashcode.");
}
ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 14);
ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 16);
}
ModAPI.meta.icon = function (iconSrc) {
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
Expand All @@ -51,7 +51,7 @@ globalThis.modapi_postinit = `(() => {
if (!document.currentScript.hasAttribute("data-hash")) {
return console.log("[ModAPIMeta] Script does not have a hashcode.");
}
ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 16);
ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 24);
}
ModAPI.meta.description = function (desc) {
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
Expand Down
4 changes: 2 additions & 2 deletions postinit.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
if (!document.currentScript.hasAttribute("data-hash")) {
return console.log("[ModAPIMeta] Script does not have a hashcode.");
}
ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 14);
ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 16);
}
ModAPI.meta.icon = function (iconSrc) {
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
Expand All @@ -51,7 +51,7 @@
if (!document.currentScript.hasAttribute("data-hash")) {
return console.log("[ModAPIMeta] Script does not have a hashcode.");
}
ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 16);
ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 24);
}
ModAPI.meta.description = function (desc) {
if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {
Expand Down

0 comments on commit 1f32472

Please sign in to comment.