Skip to content

Commit

Permalink
Fix the fix for VAFT conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed Aug 27, 2024
1 parent c490996 commit 656846d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/page/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ 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("AdSignifier") ||
NATIVE_WORKER_STRING.includes("AD_SIGNIFIER");
NATIVE_WORKER_STRING.includes("getAdBlockDiv") ||
NATIVE_WORKER_STRING.includes("getAdDiv");
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({
type: MessageType.MultipleAdBlockersInUse,
});
Expand Down

0 comments on commit 656846d

Please sign in to comment.