Use built-in innerHTML function
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
<div class="handle" bind-it-to="bskyPost.handle"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="body" bind-it-to="bskyPost.text" bind-it-with="asHTML"></div>
|
||||
<div class="body" bind-it-to="bskyPost.text" bind-it-with="innerHTML"></div>
|
||||
|
||||
<div class="embeds">
|
||||
<div class="images" bind-it-to="bskyPost.images.exists" bind-it-with="visible">
|
||||
|
@@ -45,9 +45,6 @@
|
||||
this.setAttribute('src', "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==");
|
||||
}
|
||||
},
|
||||
asHTML: function(value) {
|
||||
this.innerHTML = value;
|
||||
},
|
||||
setWidth: function(value) {
|
||||
this.style.width = `${value}px`;
|
||||
},
|
||||
|
Reference in New Issue
Block a user