From 0d983409f2d087378e7f1b142b3703eaebd0dd2e Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 22 Jun 2021 13:08:06 -0700 Subject: [PATCH] Make substring --- preload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preload.js b/preload.js index cd99268..51c3e9d 100644 --- a/preload.js +++ b/preload.js @@ -411,8 +411,8 @@ document.addEventListener("DOMContentLoaded", () => { activity.smallImageText = 'https://drpcm.t1c.dev/' } if (assets !== {}) { activity.assets = assets } - if (options.description !== '') { activity.details = options.description } - if (options.state !== '') { activity.state = options.state } + if (options.description !== '') { activity.details = options.description.substring(0, 31) } + if (options.state !== '') { activity.state = options.state.substring(0, 31) } if (options.buttons.length !== 0) { activity.buttons = options.buttons }