1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00
This commit is contained in:
zumbiepig
2024-08-21 15:59:33 -07:00
parent 181062910b
commit e39346a2eb
13 changed files with 8 additions and 16 deletions

View File

@@ -322,6 +322,14 @@ if (window.location.pathname === '/') {
} */
serviceworker.register('/sw.js');
} else {
if (storage.local.get('showAds') !== false) {
const adsense = document.createElement('script');
adsense.async = true;
adsense.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1132419379737567';
adsense.crossOrigin = 'anonymous';
document.head.appendChild(adsense);
}
document.addEventListener('DOMContentLoaded', () => {
const profileName = document.getElementById('profile-name');
if (profileName) {