mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
fix: validate codecClass in newTask function to prevent errors
This commit is contained in:
@@ -36,6 +36,9 @@
|
||||
},
|
||||
f = {};
|
||||
function h(t) {
|
||||
if (typeof c[t.codecClass] !== 'function') {
|
||||
throw new Error("Invalid codecClass");
|
||||
}
|
||||
var e = c[t.codecClass],
|
||||
r = t.sn;
|
||||
if (f[r]) throw Error("duplicated sn");
|
||||
|
||||
Reference in New Issue
Block a user