mirror of
https://github.com/younesaassila/ttv-lol-pro.git
synced 2025-04-29 22:14:27 +02:00
28 lines
755 B
TypeScript
28 lines
755 B
TypeScript
import isChromium from "../common/ts/isChromium";
|
|
import type { State } from "./types";
|
|
|
|
export default function getDefaultState() {
|
|
const state: State = {
|
|
activeChannelSubscriptions: [],
|
|
adLog: [],
|
|
adLogEnabled: true,
|
|
adLogLastSent: 0,
|
|
allowOtherProxyProtocols: false,
|
|
anonymousMode: true,
|
|
chromiumProxyActive: false,
|
|
dnsResponses: [],
|
|
normalProxies: [],
|
|
openedTwitchTabs: [],
|
|
optimizedProxies: isChromium
|
|
? ["chromium.api.cdn-perfprod.com:2023"]
|
|
: ["firefox.api.cdn-perfprod.com:2023"],
|
|
optimizedProxiesEnabled: true,
|
|
passportLevel: 0,
|
|
streamStatuses: {},
|
|
videoWeaverUrlsByChannel: {},
|
|
whitelistChannelSubscriptions: true,
|
|
whitelistedChannels: [],
|
|
};
|
|
return state;
|
|
}
|