Skip to content

Commit 1ba4c5a

Browse files
committed
rename capturepagedone to __nw_capturepagedone
1 parent 9237e4d commit 1ba4c5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/window_bindings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Window.prototype.capturePage = function(callback, image_format) {
352352
}
353353

354354
if (typeof callback == 'function') {
355-
this.once('capturepagedone', function(imgdata) {
355+
this.once('__nw_capturepagedone', function(imgdata) {
356356
callback(imgdata);
357357
});
358358
}

src/browser/capture_page_helper.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void CapturePageHelper::SendResultFromBitmap(const SkBitmap& screen_capture) {
147147
base64_result.insert(0, base::StringPrintf("data:%s;base64,",
148148
mime_type.c_str()));
149149

150-
shell_->SendEvent("capturepagedone", base64_result);
150+
shell_->SendEvent("__nw_capturepagedone", base64_result);
151151
}
152152

153153
void CapturePageHelper::OnSnapshot(const SkBitmap& bitmap) {

0 commit comments

Comments
 (0)