#1 Widget data obtainer and renderer

This commit is contained in:
Daniel Brendel
2022-09-30 21:35:02 +02:00
parent 0343247048
commit 3eb61a46da
12 changed files with 1005 additions and 9 deletions

View File

@ -121,7 +121,7 @@ class SteamWorkshopElem extends HTMLElement
let description = json.data.description;
if (description.length >= self.DESCRIPTION_MAX_LEN) {
description = description.substr(0, self.DESCRIPTION_MAX_LEN - 3) + '...';
description = description.substr(0, self.DESCRIPTION_MAX_LEN - 3) + '...';
}
author = author.replace(':creator', json.data.creator_data.personaname);
@ -264,7 +264,7 @@ window.customElements.define('steam-workshop', SteamWorkshopElem);
/**
* Class SteamWorkshop
*
* Dynamically create a Steam workshop widgets via JavaScript
* Dynamically create a Steam workshop widget via JavaScript
*/
class SteamWorkshop
{