1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-11 07:52:50 -05:00

lock/greeter: seconds precision on clock

fixes #540
This commit is contained in:
bbedward
2025-10-24 08:38:41 -04:00
parent 01e02232d7
commit f733be1fd1
3 changed files with 2 additions and 24 deletions

View File

@@ -684,26 +684,4 @@ Singleton {
getState()
}
}
function splitNmcliFields(line) {
const parts = []
let cur = ""
let escape = false
for (var i = 0; i < line.length; i++) {
const ch = line[i]
if (escape) {
cur += ch
escape = false
} else if (ch === '\\') {
escape = true
} else if (ch === ':') {
parts.push(cur)
cur = ""
} else {
cur += ch
}
}
parts.push(cur)
return parts
}
}