removed comment

This commit is contained in:
Miodec 2022-07-14 15:18:44 +02:00
parent 3457324f39
commit b38b0594ef

View file

@ -1816,120 +1816,6 @@ export function apply(
setTapeMode(configObj.tapeMode, true);
setAds(configObj.ads, true);
// try {
// setEnableAds(configObj.enableAds, true);
// if (config.enableAds === "max" || config.enableAds === "on") {
// // $("head").append(`
// // <script
// // src="https://hb.vntsm.com/v3/live/ad-manager.min.js"
// // type="text/javascript"
// // data-site-id="60b78af12119122b8958910f"
// // data-mode="scan"
// // id="adScript"
// // async
// // ></script>
// // `);
// if (config.enableAds === "max") {
// //
// $("#ad_rich_media").removeClass("hidden");
// $("#ad_rich_media")
// .html
// // `<div class="vm-placement" data-id="60bf737ee04cb761c88aafb1" style="display:none"></div>`
// ();
// } else {
// $("#ad_rich_media").remove();
// }
// //<div class="vm-placement" data-id="60bf73dae04cb761c88aafb5"></div>
// $("#ad_footer")
// .html
// // `<div class="vm-placement" data-id="60bf73dae04cb761c88aafb5"></div>`
// ();
// $("#ad_footer").removeClass("hidden");
// // $("#ad_footer2").html(`<div class="vm-placement" data-id="60bf73e9e04cb761c88aafb7"></div>`);
// // $("#ad_footer2").removeClass("hidden");
// $("#ad_about1")
// .html
// // `<div class="vm-placement" data-id="60bf73dae04cb761c88aafb5"></div>`
// ();
// $("#ad_about1").removeClass("hidden");
// $("#ad_about2")
// .html
// // `<div class="vm-placement" data-id="60bf73dae04cb761c88aafb5"></div>`
// ();
// $("#ad_about2").removeClass("hidden");
// $("#ad_settings0")
// .html
// // `<div class="vm-placement" data-id="60bf73dae04cb761c88aafb5"></div>`
// ();
// $("#ad_settings0").removeClass("hidden");
// $("#ad_settings1")
// .html
// // `<div class="vm-placement" data-id="60bf73dae04cb761c88aafb5"></div>`
// ();
// $("#ad_settings1").removeClass("hidden");
// $("#ad_settings2")
// .html
// // `<div class="vm-placement" data-id="60bf73dae04cb761c88aafb5"></div>`
// ();
// $("#ad_settings2").removeClass("hidden");
// $("#ad_settings3")
// .html
// // `<div class="vm-placement" data-id="60bf73dae04cb761c88aafb5"></div>`
// ();
// $("#ad_settings3").removeClass("hidden");
// $("#ad_account")
// .html
// // `<div class="vm-placement" data-id="60bf73dae04cb761c88aafb5"></div>`
// ();
// $("#ad_account").removeClass("hidden");
// $(".footerads").removeClass("hidden");
// } else {
// $("#adScript").remove();
// $(".footerads").remove();
// $("#ad_left").remove();
// $("#ad_right").remove();
// $("#ad_footer").remove();
// $("#ad_footer2").remove();
// $("#ad_footer3").remove();
// $("#ad_settings0").remove();
// $("#ad_settings1").remove();
// $("#ad_settings2").remove();
// $("#ad_settings3").remove();
// $("#ad_account").remove();
// $("#ad_about1").remove();
// $("#ad_about2").remove();
// }
// } catch (e) {
// Notifications.add("Error initialising ads: " + (e as Error).message);
// console.log("error initialising ads " + (e as Error).message);
// $(".footerads").remove();
// $("#ad_left").remove();
// $("#ad_right").remove();
// $("#ad_footer").remove();
// $("#ad_footer2").remove();
// $("#ad_footer3").remove();
// $("#ad_settings0").remove();
// $("#ad_settings1").remove();
// $("#ad_settings2").remove();
// $("#ad_settings3").remove();
// $("#ad_account").remove();
// $("#ad_about1").remove();
// $("#ad_about2").remove();
// }
ConfigEvent.dispatch(
"configApplied",
undefined,