Add fullscreen option (#29)

Add fullscreen option
This commit is contained in:
SVV-team 2019-11-04 20:33:50 +02:00 committed by Pierce
parent d9d5e21c76
commit db19c68fb8
2 changed files with 3 additions and 2 deletions

View file

@ -498,8 +498,8 @@ class Handler {
args[index] = fields[args[index]];
}
}
if(this.options.window) args.push('--width', this.options.window.width, '--height', this.options.window.height);
if(this.options.window) this.options.window.fullscreen ? args.push('--fullscreen') : args.push('--width', this.options.window.width, '--height', this.options.window.height);
if(this.options.server) args.push('--server', this.options.server.host, '--port', this.options.server.port || "25565");
if(this.options.proxy) args.push(
'--proxyHost',