fixed cases where the lists are empty string

This commit is contained in:
Viet Huynh
2023-09-21 23:59:40 +07:00
parent 2047063746
commit 870ca9d392
+6 -4
View File
@@ -32,11 +32,13 @@ export const LIST_TYPE = {
BLOCKLIST: "blocklist", BLOCKLIST: "blocklist",
}; };
export const USER_DEFINED_ALLOWLIST_URLS = export const USER_DEFINED_ALLOWLIST_URLS = process.env.ALLOWLIST_URLS
process.env.ALLOWLIST_URLS?.split("\n"); ? process.env.ALLOWLIST_URLS.split("\n")
: undefined;
export const USER_DEFINED_BLOCKLIST_URLS = export const USER_DEFINED_BLOCKLIST_URLS = process.env.BLOCKLIST_URLS
process.env.BLOCKLIST_URLS?.split("\n"); ? process.env.BLOCKLIST_URLS.split("\n")
: undefined;
export const RECOMMENDED_ALLOWLIST_URLS = [ export const RECOMMENDED_ALLOWLIST_URLS = [
"https://raw.githubusercontent.com/im-sm/Pi-hole-Torrent-Blocklist/main/all-torrent-trackres.txt", "https://raw.githubusercontent.com/im-sm/Pi-hole-Torrent-Blocklist/main/all-torrent-trackres.txt",