From 9d0ab3f38ddb6caac0c5cca3380b33be73d3a3b9 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 7 Jan 2019 19:58:32 -0700 Subject: [PATCH] Add index.js for NW.js app --- index.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..39efff8 --- /dev/null +++ b/index.js @@ -0,0 +1,12 @@ +/* + * 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('www/index.html', { + "id": "notepostapp_mainwindow" +}, function (win) { + win.setMinimumSize(300, 450); + win.setPosition("center"); +}); \ No newline at end of file