@livedesk/client 0.1.3 → 0.1.4
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.
- package/README.md +1 -1
- package/bin/livedesk-client-node.js +1 -1
- package/bin/livedesk-client.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ npx @livedesk/client 3
|
|
|
9
9
|
|
|
10
10
|
The default flow opens Google sign-in, finds the active LiveDesk manager
|
|
11
11
|
published by the same account, and connects locally. Omit the number for
|
|
12
|
-
first-available placement, or pass `1` to `
|
|
12
|
+
first-available placement, or pass `1` to `999` to pin this machine to a screen
|
|
13
13
|
wall slot.
|
|
14
14
|
|
|
15
15
|
On the manager computer, open the LiveDesk dashboard and sign in first. The
|
|
@@ -193,7 +193,7 @@ function normalizeDeviceId(value) {
|
|
|
193
193
|
|
|
194
194
|
function normalizeSlotNumber(value) {
|
|
195
195
|
const number = Number(String(value || '').trim());
|
|
196
|
-
return Number.isInteger(number) && number >= 1 && number <=
|
|
196
|
+
return Number.isInteger(number) && number >= 1 && number <= 999 ? number : 0;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
async function getDeviceId(explicitDeviceId = '') {
|
package/bin/livedesk-client.js
CHANGED
|
@@ -29,7 +29,7 @@ Usage:
|
|
|
29
29
|
|
|
30
30
|
Default flow:
|
|
31
31
|
Opens Google sign-in, finds the signed-in manager, and connects locally.
|
|
32
|
-
Omit the number for first-available placement, or pass 1-
|
|
32
|
+
Omit the number for first-available placement, or pass 1-999 to pin a slot.
|
|
33
33
|
|
|
34
34
|
Options:
|
|
35
35
|
--slot <number> Screen wall slot number for this computer.
|
|
@@ -185,7 +185,7 @@ function parseLauncherArgs(argv) {
|
|
|
185
185
|
|
|
186
186
|
function normalizeSlotNumber(value) {
|
|
187
187
|
const number = Number(String(value || '').trim());
|
|
188
|
-
if (!Number.isInteger(number) || number < 1 || number >
|
|
188
|
+
if (!Number.isInteger(number) || number < 1 || number > 999) {
|
|
189
189
|
return '';
|
|
190
190
|
}
|
|
191
191
|
return String(number);
|