mirror of
https://github.com/storytold/spark.git
synced 2026-10-17 00:12:59 +00:00
Fix source code path in examples
This commit is contained in:
+1
-1
@@ -221,7 +221,7 @@
|
|||||||
panel.querySelectorAll('.example-link').forEach((link) => {
|
panel.querySelectorAll('.example-link').forEach((link) => {
|
||||||
link.addEventListener('click', (e) => {
|
link.addEventListener('click', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const path = link.getAttribute('href');
|
const path = link.getAttribute('href').substring(1);
|
||||||
iframe.src = path;
|
iframe.src = path;
|
||||||
|
|
||||||
console.log('path:', path);
|
console.log('path:', path);
|
||||||
|
|||||||
Reference in New Issue
Block a user