mirror of
https://github.com/SophiaAtkinson/steamwidgets-web.git
synced 2025-06-27 12:27:42 -07:00
#1 Widget data obtainer and renderer
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user