From 57b2c5c4e4a75e475afef6f968dabc786f34c688 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Tue, 4 Sep 2018 07:35:02 -0500 Subject: [PATCH] 'browser open' console command --- lib/modules/webserver/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/modules/webserver/index.js b/lib/modules/webserver/index.js index e9095bbe1..db8710084 100644 --- a/lib/modules/webserver/index.js +++ b/lib/modules/webserver/index.js @@ -95,6 +95,10 @@ class WebServer { }; }); + self.embark.registerConsoleCommand((cmd, _options) => { + return { + match: () => cmd === 'browser open', + process: (cb) => self.events.request('open-browser', cb) }; }); }