|
@@ -199,7 +199,7 @@ WebContents.prototype.executeJavaScript = function (code, hasUserGesture, callba
|
|
|
WebContents.prototype.takeHeapSnapshot = function (filePath) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
const channel = `ELECTRON_TAKE_HEAP_SNAPSHOT_RESULT_${getNextId()}`
|
|
|
- ipcMain.once(channel, (event, success) => {
|
|
|
+ ipcMainInternal.once(channel, (event, success) => {
|
|
|
if (success) {
|
|
|
resolve()
|
|
|
} else {
|
|
@@ -207,7 +207,7 @@ WebContents.prototype.takeHeapSnapshot = function (filePath) {
|
|
|
}
|
|
|
})
|
|
|
if (!this._takeHeapSnapshot(filePath, channel)) {
|
|
|
- ipcMain.emit(channel, false)
|
|
|
+ ipcMainInternal.emit(channel, false)
|
|
|
}
|
|
|
})
|
|
|
}
|