livedesk 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/livedesk.js +3 -1
  2. package/package.json +1 -1
package/bin/livedesk.js CHANGED
@@ -156,7 +156,9 @@ function resolvePackageEntry(packageName, fallback) {
156
156
 
157
157
  async function runManager(args) {
158
158
  const options = parseManagerArgs(args);
159
- const openUrl = options.openUrl || DEFAULT_MANAGER_URL;
159
+ const openUrl = options.port && options.openUrl === DEFAULT_MANAGER_URL
160
+ ? `http://127.0.0.1:${options.port}`
161
+ : (options.openUrl || DEFAULT_MANAGER_URL);
160
162
 
161
163
  if (await isManagerAlreadyRunning(openUrl)) {
162
164
  console.log(`LiveDesk manager is already running at ${openUrl}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livedesk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "LiveDesk manager and client launcher",
5
5
  "type": "module",
6
6
  "bin": {