diff options
author | Devine Lu Linvega <[email protected]> | 2019-04-04 19:00:27 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-04-04 19:00:29 +0900 |
commit | b9cdd97c2f452b5a72e2fe4104ac31e1f638bf04 (patch) | |
tree | b77486e45d6073780e2ef123d804f1d4ce5b09bb | |
parent | d8c226a419d5efef96bb22765d3be55ceaa61ae6 (diff) | |
download | Orca-b9cdd97c2f452b5a72e2fe4104ac31e1f638bf04.tar.gz Orca-b9cdd97c2f452b5a72e2fe4104ac31e1f638bf04.zip |
Restart OSC server with a different ip from electron console.
-rw-r--r-- | desktop/main.js | 1 | ||||
-rw-r--r-- | desktop/sources/scripts/io.osc.js | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/desktop/main.js b/desktop/main.js index 88f68af..62f6a2e 100644 --- a/desktop/main.js +++ b/desktop/main.js @@ -19,6 +19,7 @@ app.on('ready', () => { frame: process.platform !== 'darwin', skipTaskbar: process.platform === 'darwin', autoHideMenuBar: process.platform === 'darwin', + webPreferences: { zoomFactor: 1.0 }, webPreferences: { backgroundThrottling: false } }) diff --git a/desktop/sources/scripts/io.osc.js b/desktop/sources/scripts/io.osc.js index 208a305..c761ced 100644 --- a/desktop/sources/scripts/io.osc.js +++ b/desktop/sources/scripts/io.osc.js @@ -53,9 +53,9 @@ function Osc (terminal) { terminal.controller.commit() } - this.setup = function () { + this.setup = function (ip = '127.0.0.1') { if (this.client) { this.client.kill() } - this.client = new osc.Client('127.0.0.1', this.port) + this.client = new osc.Client(ip, this.port) } } |