mirror of
https://github.com/younesaassila/ttv-lol-pro.git
synced 2025-04-29 14:04:26 +02:00
Improve VAFT detection
This commit is contained in:
parent
656846df4c
commit
aca9604c1d
@ -53,8 +53,9 @@ window.Worker = class Worker extends NATIVE_WORKER {
|
||||
// Required for VAFT (>=12.0.0) compatibility.
|
||||
const NATIVE_WORKER_STRING = NATIVE_WORKER.toString();
|
||||
const isAlreadyHooked =
|
||||
NATIVE_WORKER_STRING.includes("getAdBlockDiv") ||
|
||||
NATIVE_WORKER_STRING.includes("getAdDiv");
|
||||
NATIVE_WORKER_STRING.includes("twitch") &&
|
||||
(NATIVE_WORKER_STRING.includes("getAdBlockDiv") ||
|
||||
NATIVE_WORKER_STRING.includes("getAdDiv"));
|
||||
if (isAlreadyHooked) {
|
||||
console.error("[TTV LOL PRO] Another Twitch ad blocker is in use.");
|
||||
sendMessageToContentScript({
|
||||
|
Loading…
x
Reference in New Issue
Block a user