Skip to content
This repository was archived by the owner on Jun 17, 2023. It is now read-only.

Commit 0d98340

Browse files
Make substring
1 parent 8c669ee commit 0d98340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

preload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ document.addEventListener("DOMContentLoaded", () => {
411411
activity.smallImageText = 'https://drpcm.t1c.dev/'
412412
}
413413
if (assets !== {}) { activity.assets = assets }
414-
if (options.description !== '') { activity.details = options.description }
415-
if (options.state !== '') { activity.state = options.state }
414+
if (options.description !== '') { activity.details = options.description.substring(0, 31) }
415+
if (options.state !== '') { activity.state = options.state.substring(0, 31) }
416416
if (options.buttons.length !== 0) { activity.buttons = options.buttons }
417417

418418

0 commit comments

Comments
 (0)