Files
wompchat/src/content/Emotes/Emote.js
wompmacho 3d81e92ecb adding dev files to master
adding all the dev files, package, webpack etc, including build which will contain minified release
2020-11-01 21:02:00 -05:00

16 lines
277 B
JavaScript

class Emote {
constructor({ code, url }) {
this.code = code;
this.url = url;
}
get html() {
return (`
<span class="Emote">
<img title="${this.code}" src="${this.url}" alt="${this.code}">
</span>
`).trim();
}
}
export default Emote;