@xpadev-net/niconicomments 0.2.66 → 0.2.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bundle.js +3 -4
  2. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- niconicomments.js v0.2.66
2
+ niconicomments.js v0.2.67
3
3
  (c) 2021 xpadev-net https://xpadev.net
4
4
  Released under the MIT License.
5
5
  */
@@ -4136,7 +4136,7 @@
4136
4136
  const tmpParam = {
4137
4137
  id: Number(item.getAttribute("no")) || index++,
4138
4138
  vpos: Number(item.getAttribute("vpos")),
4139
- content: item.innerHTML,
4139
+ content: item.textContent ?? "",
4140
4140
  date: Number(item.getAttribute("date")) || 0,
4141
4141
  date_usec: Number(item.getAttribute("date_usec")) || 0,
4142
4142
  owner: !item.getAttribute("user_id"),
@@ -4673,8 +4673,7 @@
4673
4673
  if (arrayEqual(current, last))
4674
4674
  return false;
4675
4675
  }
4676
- const size = this.renderer.getSize();
4677
- this.renderer.clearRect(0, 0, size.width, size.height);
4676
+ this.renderer.clearRect(0, 0, config.canvasWidth, config.canvasHeight);
4678
4677
  this.lastVpos = vpos;
4679
4678
  this._drawVideo();
4680
4679
  for (const plugin of plugins) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpadev-net/niconicomments",
3
- "version": "0.2.66",
3
+ "version": "0.2.67",
4
4
  "description": "NiconiComments is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/bundle.d.ts",