diff --git a/client/src/inject.ts b/client/src/inject.ts index 6201188..f574f5d 100644 --- a/client/src/inject.ts +++ b/client/src/inject.ts @@ -19,14 +19,15 @@ window.addEventListener('load', () => { Utils.consoleLog(inputsWithValue); Utils.consoleLog(`trxstate: ${inputsWithValue["trxstate"]}`); - // "posturl" in function showMap() only available if "pvmapse" PVO code is true. - // "pvmapse" false disables seatmap + // "posturl" in function showMap() only available if "pvmapse" is true, false disables seatmap const posturlAvail: boolean = /posturl:"(.+?)"/.test(content); - + const couponCodeBoxAvail: boolean = !!jQuery("#coupon_code_box").length; + + Utils.consoleLog(`couponCodeBoxAvail: ${couponCodeBoxAvail}`); Utils.consoleLog(`posturl available: ${posturlAvail}`); // Only inject on page with trxstate 20 and if seatmap is enabled with PVO code "pvmapse" - if (inputsWithValue["trxstate"] !== "20" || posturlAvail === false) + if (inputsWithValue["trxstate"] !== "20" || posturlAvail === false || couponCodeBoxAvail === true) return; // Inject parent CSS