Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nva-sec authored Oct 3, 2024
1 parent 34a5e26 commit ebd2fcd
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions public/builtin/apps/games/3kh0-lite-main/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,7 @@ console.warn(
"Feel free to use anything you find here for your projects; credit is appreciated but not required! Visit my website at https://3kh0.net for more information."
);

// this setting controls if ads are shown,
// more info on the README.md file
var adStatus = localStorage.getItem("adConsent") === "true"; // default: true

if (!adStatus) {
(function () {
var script = document.createElement("script");
script.async = true;
script.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5756835229788588";
script.crossOrigin = "anonymous";
document.head.appendChild(script);
console.log("Ads enabled, thank you for your support!");
})();
}

const script = document.createElement("script");
script.src = "https://data.3kh0.net/script.js";
script.defer = true;
script.setAttribute("data-website-id", "47d72bde-ba44-4125-b161-00e0c2f5b7f0");
document.head.appendChild(script);
script.onload = function() {
console.log("Data script loaded");
umami.track([location.hostname, "pageview"].join("/"));
};

const local_title = localStorage.getItem("title");
const local_icon = localStorage.getItem("icon");
Expand Down

0 comments on commit ebd2fcd

Please sign in to comment.