Update samy.js
This commit is contained in:
4
samy.js
4
samy.js
@@ -349,7 +349,7 @@ async function triggerInstall() {
|
||||
if (renameCB && renameCB.checked && newNameInput) {
|
||||
const newName = newNameInput.value.trim();
|
||||
|
||||
// Same basic rules you’ll enforce server-side
|
||||
// Same basic rules you'll enforce server-side
|
||||
const nameIsValid =
|
||||
newName.length > 0 &&
|
||||
newName.length <= 15 &&
|
||||
@@ -357,7 +357,7 @@ async function triggerInstall() {
|
||||
|
||||
if (!nameIsValid) {
|
||||
alert(
|
||||
"Invalid computer name. Must be 1–15 characters and only letters, numbers, and hyphens."
|
||||
"Invalid computer name. Must be 1-15 characters and only letters, numbers, and hyphens."
|
||||
);
|
||||
// still mark it as a failed task so progress reaches 100%
|
||||
logProgress("Rename computer", false);
|
||||
|
||||
Reference in New Issue
Block a user