Add back iframe detection

This commit is contained in:
Idrees Hassan
2025-10-26 21:26:40 -04:00
parent cda160414f
commit 56a999a235
4 changed files with 22 additions and 4 deletions

View File

@@ -379,6 +379,12 @@ Promise.all([
function init() {
log("Sprite sheets loaded successfully, initializing bird...");
if (window !== window.top) {
// Skip installation if within an iframe
log("In iframe, skipping Birb script initialization");
return;
}
// Preload font
const MONOCRAFT_SRC = "https://cdn.jsdelivr.net/gh/idreesinc/Monocraft@99b32ab40612ff2533a69d8f14bd8b3d9e604456/dist/Monocraft.otf";
const fontLink = document.createElement("link");