mirror of
https://github.com/younesaassila/ttv-lol-pro.git
synced 2025-04-29 22:14:27 +02:00
Fix the fix for VAFT conflict
This commit is contained in:
parent
c4909968d4
commit
656846df4c
@ -53,10 +53,10 @@ window.Worker = class Worker extends NATIVE_WORKER {
|
|||||||
// Required for VAFT (>=12.0.0) compatibility.
|
// Required for VAFT (>=12.0.0) compatibility.
|
||||||
const NATIVE_WORKER_STRING = NATIVE_WORKER.toString();
|
const NATIVE_WORKER_STRING = NATIVE_WORKER.toString();
|
||||||
const isAlreadyHooked =
|
const isAlreadyHooked =
|
||||||
NATIVE_WORKER_STRING.includes("AdSignifier") ||
|
NATIVE_WORKER_STRING.includes("getAdBlockDiv") ||
|
||||||
NATIVE_WORKER_STRING.includes("AD_SIGNIFIER");
|
NATIVE_WORKER_STRING.includes("getAdDiv");
|
||||||
if (isAlreadyHooked) {
|
if (isAlreadyHooked) {
|
||||||
console.info("[TTV LOL PRO] Another Twitch ad blocker is in use.");
|
console.error("[TTV LOL PRO] Another Twitch ad blocker is in use.");
|
||||||
sendMessageToContentScript({
|
sendMessageToContentScript({
|
||||||
type: MessageType.MultipleAdBlockersInUse,
|
type: MessageType.MultipleAdBlockersInUse,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user