mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-11 21:58:35 +00:00
Update devices.html
sanitize device names function
This commit is contained in:
parent
cbc7971fa5
commit
f62f31329d
@ -64,6 +64,10 @@
|
||||
return value.kind === "videoinput";
|
||||
}
|
||||
|
||||
function sanitizeDeviceName(deviceName) {
|
||||
return String(deviceName).toLowerCase().replace(/[\W]+/g, "_");
|
||||
}
|
||||
|
||||
function addDevice(element) {
|
||||
const info = element.getElementsByClassName("device-id")[0];
|
||||
const type = info.dataset.deviceType;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user