extension should now communicate with the official website and hide an element from it

This commit is contained in:
vuk
2024-08-22 15:54:57 +02:00
parent 4a8f5cc2cf
commit f68d9dad91
2 changed files with 8 additions and 4 deletions

View File

@@ -20,4 +20,7 @@ div.style.backgroundSize = 'contain'
div.style.backgroundRepeat = 'no-repeat'
div.style.backgroundPosition = 'center'
div.style.transform = 'translateY(-50%)'
document.body.appendChild(div)
document.body.appendChild(div)
const message = { extensionDetected: true };
window.postMessage(message, "*");