mirror of
https://github.com/younesaassila/ttv-lol-pro.git
synced 2025-04-29 22:14:27 +02:00
Minor code change
This commit is contained in:
parent
af02be5927
commit
a9e7e3c02f
@ -6,6 +6,6 @@ export const twitchGqlHostRegex = /^gql\.twitch\.tv$/i;
|
||||
export const twitchTvHostRegex = /^(?:www|m)\.twitch\.tv$/i;
|
||||
export const usherHostRegex = /^usher\.ttvnw\.net$/i;
|
||||
export const videoWeaverHostRegex =
|
||||
/^(?:video-weaver\.\w+\.hls\.ttvnw\.net|\w+\.playlist\.live-video\.net)$/i;
|
||||
/^(?:\w+\.playlist\.live-video\.net|video-weaver\.\w+\.hls\.ttvnw\.net)$/i;
|
||||
export const videoWeaverUrlRegex =
|
||||
/^https?:\/\/(?:video-weaver\.\w+\.hls\.ttvnw\.net|\w+\.playlist\.live-video\.net)\/v1\/playlist\/.+\.m3u8$/gim;
|
||||
/^https?:\/\/(?:\w+\.playlist\.live-video\.net|video-weaver\.\w+\.hls\.ttvnw\.net)\/v1\/playlist\/.+\.m3u8$/gim;
|
||||
|
@ -436,6 +436,7 @@ export function getFetch(pageState: PageState): typeof fetch {
|
||||
const videoWeaverUrls = [...(assignedMap?.values() ?? [])];
|
||||
videoWeaverUrls.forEach(url => {
|
||||
videoWeaverUrlsProxiedCount.delete(url); // Shouldn't be necessary, but just in case.
|
||||
videoWeaverUrlsToNotProxy.delete(url); // Shouldn't be necessary, but just in case.
|
||||
if (isFrontpage || isWhitelisted) videoWeaverUrlsToNotProxy.add(url);
|
||||
});
|
||||
pageState.sendMessageToContentScript({
|
||||
|
@ -201,7 +201,7 @@ function onChannelChange(
|
||||
});
|
||||
}
|
||||
|
||||
onChannelChange((channelName, oldChannelName) => {
|
||||
onChannelChange((_channelName, oldChannelName) => {
|
||||
sendMessageToContentScript({
|
||||
type: MessageType.ClearStats,
|
||||
channelName: oldChannelName,
|
||||
|
Loading…
x
Reference in New Issue
Block a user