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.
- package/lib/index.js +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("
|
|
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("
|
|
126
|
+
this.emit("cancel");
|
|
127
127
|
this.endCapture();
|
|
128
128
|
this.logger("startCapture error %o", ex);
|
|
129
129
|
}
|