Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
settings: Settings,
queryCache: QueryCache,
apiBaseUrl: string,
currentChannel: string | null,
currentUsername: string | null,
error: boolean,
activeSearchField: HTMLInputElement | null,
showSwagger: boolean,
}
export type Action = Record;
const url = new URL(window.location.href);
const defaultContext = {
state: {
queryCache: new QueryCache(),
apiBaseUrl: process.env.REACT_APP_API_BASE_URL ?? window.location.protocol + "//" + window.location.host,
settings: {
showEmotes: {
displayName: "Show Emotes",
value: true,
},
showName: {
displayName: "Show Name",
value: true,
},
showTimestamp: {
displayName: "Show Timestamp",
value: true,
},
twitchChatMode: {
displayName: "Twitch Chat Mode",