infamous-test 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.html +10 -3
- package/package.json +1 -1
package/index.html
CHANGED
|
@@ -399,7 +399,7 @@ button.button:hover { background: var(--bg-3); }
|
|
|
399
399
|
<p>A state of the art unblocked games website. Clean, customizable, and powerful.</p>
|
|
400
400
|
</div>
|
|
401
401
|
</div>
|
|
402
|
-
<p class="version-tag">infamous <a href="#" target="_blank">unpkg v1.0.
|
|
402
|
+
<p class="version-tag">infamous <a href="#" target="_blank">unpkg v1.0.3</a></p>
|
|
403
403
|
</div>
|
|
404
404
|
</div>
|
|
405
405
|
|
|
@@ -445,7 +445,7 @@ button.button:hover { background: var(--bg-3); }
|
|
|
445
445
|
</div>
|
|
446
446
|
|
|
447
447
|
<button id="reset-theme" onclick="resetTheme()">CLICK HERE TO RESET YOUR THEME!</button>
|
|
448
|
-
<infamousattr version="s1.0.
|
|
448
|
+
<infamousattr version="s1.0.3-unpkg"></infamousattr>
|
|
449
449
|
|
|
450
450
|
<!-- Three.js and Vanta -->
|
|
451
451
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script>
|
|
@@ -840,13 +840,20 @@ async function go(u) {
|
|
|
840
840
|
if (ubar && cTab) ubar.value = cTab.url;
|
|
841
841
|
try {
|
|
842
842
|
console.log("[Infamous] Setting viewframe.src to:", u);
|
|
843
|
+
// Remove srcdoc so src takes effect
|
|
844
|
+
viewframe.removeAttribute("srcdoc");
|
|
843
845
|
viewframe.src = u;
|
|
846
|
+
viewframe.onerror = (e) => {
|
|
847
|
+
console.error("[Infamous] Frame error:", e);
|
|
848
|
+
};
|
|
844
849
|
viewframe.onload = () => {
|
|
845
|
-
console.log("[Infamous] Frame loaded");
|
|
850
|
+
console.log("[Infamous] Frame loaded, checking content...");
|
|
846
851
|
try {
|
|
847
852
|
const title = viewframe.contentDocument?.title || (cTab ? new URL(cTab.url).hostname : "Tab");
|
|
853
|
+
console.log("[Infamous] Frame title:", title);
|
|
848
854
|
if (tabEl) { const titleEl = tabEl.querySelector("span"); if (titleEl) titleEl.textContent = title; }
|
|
849
855
|
} catch (e) {
|
|
856
|
+
console.log("[Infamous] Cross-origin frame, using hostname");
|
|
850
857
|
if (tabEl && cTab) { const titleEl = tabEl.querySelector("span"); if (titleEl) titleEl.textContent = new URL(cTab.url).hostname; }
|
|
851
858
|
}
|
|
852
859
|
};
|