eedatek-electron-screenrecord 2.1.6 → 2.1.7

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/index.js +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -116,14 +116,14 @@ class ScreenRecord extends events_1.default {
116
116
  //全屏的截图base64
117
117
  const [imageUrl] = await Promise.all([this.capture(display)]);
118
118
  if (!imageUrl) {
119
- this.emit("close");
119
+ this.emit("cancel");
120
120
  this.endCapture();
121
121
  return;
122
122
  }
123
123
  await this.createWindow(display, imageUrl);
124
124
  }
125
125
  catch (ex) {
126
- this.emit("close");
126
+ this.emit("cancel");
127
127
  this.endCapture();
128
128
  this.logger("startCapture error %o", ex);
129
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eedatek-electron-screenrecord",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "electron 录屏插件",
5
5
  "types": "lib/index.d.ts",
6
6
  "main": "lib/index.cjs.js",