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) {
|
if (renameCB && renameCB.checked && newNameInput) {
|
||||||
const newName = newNameInput.value.trim();
|
const newName = newNameInput.value.trim();
|
||||||
|
|
||||||
// Same basic rules you’ll enforce server-side
|
// Same basic rules you'll enforce server-side
|
||||||
const nameIsValid =
|
const nameIsValid =
|
||||||
newName.length > 0 &&
|
newName.length > 0 &&
|
||||||
newName.length <= 15 &&
|
newName.length <= 15 &&
|
||||||
@@ -357,7 +357,7 @@ async function triggerInstall() {
|
|||||||
|
|
||||||
if (!nameIsValid) {
|
if (!nameIsValid) {
|
||||||
alert(
|
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%
|
// still mark it as a failed task so progress reaches 100%
|
||||||
logProgress("Rename computer", false);
|
logProgress("Rename computer", false);
|
||||||
|
|||||||
Reference in New Issue
Block a user