Skip to content

Commit

Permalink
鉁忥笍 馃悰 Fixed typo and file navigation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
max-programming committed Jun 19, 2021
1 parent ec3f967 commit 4d8f525
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.js
Expand Up @@ -10,7 +10,7 @@ const demos = [
path: "clipboard",
},
{
title: "馃摗 Broardcast",
title: "馃摗 Broadcast",
desc: "The BroadcastChannel is a named channel that allows communication between different documents (in different windows, tabs, frames or iframes) of the same origin.",
path: "broadcast-channel",
},
Expand Down Expand Up @@ -106,7 +106,10 @@ function createDemoPanel(searchTerm) {
data-feather='zap'
style='width: 22px; height: 22px;'></i>`;
tryLinkElem.appendChild(tryItElem);
tryLinkElem.setAttribute("href", `../demos/${filteredList[count].path}/index.html`);
tryLinkElem.setAttribute(
"href",
`./demos/${filteredList[count].path}/index.html`
);

let gitHubLinkElem = document.createElement("a");
gitHubLinkElem.style.float = 'right';
Expand Down

0 comments on commit 4d8f525

Please sign in to comment.