fcr-ui-scene 3.1.0-3 → 3.1.0-4
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/electron/app.js +2 -0
- package/package.json +1 -1
package/lib/electron/app.js
CHANGED
|
@@ -14,6 +14,7 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
14
14
|
require("core-js/modules/es.string.starts-with.js");
|
|
15
15
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
16
16
|
require("core-js/modules/web.timers.js");
|
|
17
|
+
var _main = require("@electron/remote/main");
|
|
17
18
|
var _window = require("./window");
|
|
18
19
|
var _electron = require("electron");
|
|
19
20
|
var _path = _interopRequireDefault(require("path"));
|
|
@@ -22,6 +23,7 @@ var hookApp = exports.hookApp = function hookApp(app) {
|
|
|
22
23
|
return window.isDestroyed();
|
|
23
24
|
};
|
|
24
25
|
app.addListener('browser-window-created', function (_, window) {
|
|
26
|
+
(0, _main.enable)(window.webContents);
|
|
25
27
|
var windowId = window.id;
|
|
26
28
|
window.addListener('close', function () {
|
|
27
29
|
_electron.BrowserWindow.getAllWindows().forEach(function (window) {
|