partial streamer events

This commit is contained in:
Maxim Devaev
2024-10-23 19:27:24 +03:00
parent 0e4a70e7b9
commit a26aee3543
7 changed files with 207 additions and 135 deletions

View File

@@ -309,6 +309,14 @@ export var tools = new function() {
self.selector.addComment(el, "\u2500".repeat(repeat));
}
},
"hasValue": function(el, value) {
for (let el_op of el.options) {
if (el_op.value === value) {
return true;
}
}
return false;
},
"setValues": function(el, values, empty_title=null) {
if (values.constructor == Object) {