From a9c0ba4ce3ec141efed6bea9600647423b3bfe04 Mon Sep 17 00:00:00 2001 From: Diego Marcos Segura Date: Sat, 31 May 2025 01:03:49 -0700 Subject: [PATCH] Fix examples page iframe URL --- examples.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples.html b/examples.html index 4566ad1..f0f3e1c 100644 --- a/examples.html +++ b/examples.html @@ -221,14 +221,12 @@ panel.querySelectorAll('.example-link').forEach((link) => { link.addEventListener('click', (e) => { e.preventDefault(); - const path = link.getAttribute('href').substring(1); + const path = link.getAttribute('href'); iframe.src = path; - console.log('path:', path); document.querySelectorAll('.example-link').forEach(l => l.classList.remove('active')); link.classList.add('active'); - codeButton.href = `https://github.com/forge-gfx/forge/blob/main/${path}`; - console.log('codeButton href:', codeButton.href); + codeButton.href = `https://github.com/forge-gfx/forge/blob/main/${path.substring(1)}`; }); }); }