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

Commit

Permalink
Make substring
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatOneCalculator committed Jun 22, 2021
1 parent 8c669ee commit 0d98340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }


Expand Down

1 comment on commit 0d98340

@konstantinhirschfeld
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, i feel stupid now.

Please sign in to comment.