sample-xmonitor-js 1.0.9 → 1.0.10

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/lib/Monitor.js +1 -1
  2. package/package.json +1 -1
package/lib/Monitor.js CHANGED
@@ -100,7 +100,7 @@ export default class Monitor {
100
100
  this.watcher = new Watcher(this);
101
101
  }
102
102
  isPaused() {
103
- return this.element.paused;
103
+ return this.element instanceof HTMLVideoElement && this.element.paused;
104
104
  }
105
105
  shot() {
106
106
  return this.watcher.shot(this.options.setup?.sharpness).then(img => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sample-xmonitor-js",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "./lib/index",
6
6
  "files": [