mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-02 04:51:20 +00:00
api/service-config: replace static arrays with sets
This commit is contained in:
@@ -194,7 +194,7 @@ export default function({
|
||||
break;
|
||||
|
||||
case "audio":
|
||||
if (audioIgnore.includes(host) || (host === "reddit" && r.typeId === "redirect")) {
|
||||
if (audioIgnore.has(host) || (host === "reddit" && r.typeId === "redirect")) {
|
||||
return createResponse("error", {
|
||||
code: "error.api.service.audio_not_supported"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user