Update statuses to work with new API
This commit is contained in:
parent
05f1e11ea4
commit
53314a14fb
1 changed files with 3 additions and 3 deletions
|
@ -207,8 +207,8 @@ function converter(html, dynamic = true) {
|
||||||
<a class="chip" href="/faq">Nerd FAQ</a></h3>
|
<a class="chip" href="/faq">Nerd FAQ</a></h3>
|
||||||
</div>`,
|
</div>`,
|
||||||
"CUSTOM_STATUS": () => {
|
"CUSTOM_STATUS": () => {
|
||||||
if (api.lanyard.activities[0] && api.lanyard.activities[0].type == 4) {
|
if (api.lanyard.custom_status) {
|
||||||
var status = api.lanyard.activities[0]
|
var status = api.lanyard.custom_status
|
||||||
var addedHTML = "<hr/><p>"
|
var addedHTML = "<hr/><p>"
|
||||||
if (status.emoji) {
|
if (status.emoji) {
|
||||||
if (status.emoji.id) {
|
if (status.emoji.id) {
|
||||||
|
@ -218,7 +218,7 @@ function converter(html, dynamic = true) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
addedHTML += makeHtmlSafe(status.state)
|
addedHTML += makeHtmlSafe(status.text)
|
||||||
addedHTML += "</p>"
|
addedHTML += "</p>"
|
||||||
return addedHTML
|
return addedHTML
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue