@electron-lab/title-bar
Advanced tools
Comparing version 0.2.4-alpha.2 to 0.2.4-alpha.3
import { ipcMain } from 'electron'; | ||
import { WINDOW_CLOSE, WINDOW_MAXIMIZE, WINDOW_MINIMIZE, WINDOW_STATE, WINDOW_STATE_MAX, WINDOW_STATE_NORMAL } from './constants'; | ||
import * as remoteMain from '@electron/remote/main'; | ||
import _ from '@electron/remote'; | ||
_; | ||
remoteMain.initialize(); | ||
@@ -7,0 +5,0 @@ export var initWindowListener = function initWindowListener(mainWindow) { |
@@ -16,6 +16,2 @@ "use strict"; | ||
var _remote = _interopRequireDefault(require("@electron/remote")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
@@ -25,3 +21,2 @@ | ||
_remote.default; | ||
remoteMain.initialize(); | ||
@@ -28,0 +23,0 @@ |
{ | ||
"name": "@electron-lab/title-bar", | ||
"version": "0.2.4-alpha.2", | ||
"version": "0.2.4-alpha.3", | ||
"main": "lib/index.js", | ||
@@ -24,3 +24,3 @@ "module": "es/index.js", | ||
], | ||
"gitHead": "09abe24ad6d9876c99f651733495968abb8e1012", | ||
"gitHead": "52e9dff6366aa51615549a464f8bd736ca1f4760", | ||
"devDependencies": { | ||
@@ -27,0 +27,0 @@ "jest": "^27.1.0" |
@@ -13,8 +13,4 @@ import type { BrowserWindow } from 'electron'; | ||
import _ from '@electron/remote'; | ||
_; | ||
remoteMain.initialize(); | ||
export const initWindowListener = (mainWindow: BrowserWindow): void => { | ||
@@ -21,0 +17,0 @@ remoteMain.enable(mainWindow.webContents); |
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
59607
1095