From 7b9c10681092c1921139048611a2bee0b4a10bcc Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 30 Jun 2021 15:01:46 -0600 Subject: [PATCH] Switch to javascript main --- main.js | 13 +++++++++++++ package.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 main.js diff --git a/main.js b/main.js new file mode 100644 index 0000000..b461c7a --- /dev/null +++ b/main.js @@ -0,0 +1,13 @@ +/* + * Copyright 2021 Netsyms Technologies. + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +nw.Window.open('index.html', { + id: "com.netsyms.ipentool_mainwindow" +}, function (win) { + win.setMinimumSize(300, 450); + win.setPosition("center"); +}); diff --git a/package.json b/package.json index f27631a..631dcc8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "IPENtool", - "main": "index.html", + "main": "main.js", "version": "1.0.0", "keywords": [ "util",