@wixc3/engine-electron
Advanced tools
Comparing version 8.0.4 to 8.1.0
@@ -11,3 +11,3 @@ "use strict"; | ||
const initializeNodeEnvironmentInBrowser = async ({ communication, env, environmentStartupOptions, processOptions }) => { | ||
const { id, dispose } = await engine_electron_commons_1.initializeNodeEnvironment({ | ||
const { id, dispose, onDisconnect } = await engine_electron_commons_1.initializeNodeEnvironment({ | ||
environmentStartupOptions, | ||
@@ -17,6 +17,6 @@ env, | ||
getApplicationMetaData, | ||
processOptions | ||
processOptions, | ||
}); | ||
window.addEventListener('beforeunload', dispose); | ||
return { id }; | ||
return { id, onDisconnect }; | ||
}; | ||
@@ -23,0 +23,0 @@ exports.initializeNodeEnvironmentInBrowser = initializeNodeEnvironmentInBrowser; |
{ | ||
"name": "@wixc3/engine-electron", | ||
"version": "8.0.4", | ||
"version": "8.1.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
@@ -21,3 +21,3 @@ import { ipcRenderer } from 'electron'; | ||
> = async ({ communication, env, environmentStartupOptions, processOptions }) => { | ||
const { id, dispose } = await initializeNodeEnvironment({ | ||
const { id, dispose, onDisconnect } = await initializeNodeEnvironment({ | ||
environmentStartupOptions, | ||
@@ -27,6 +27,6 @@ env, | ||
getApplicationMetaData, | ||
processOptions | ||
processOptions, | ||
}); | ||
window.addEventListener('beforeunload', dispose); | ||
return { id }; | ||
return { id, onDisconnect }; | ||
}; | ||
@@ -33,0 +33,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18055