remove console.log's that are no longer needed
This commit is contained in:
parent
f2b1b230ff
commit
cd5bc9bec0
2 changed files with 0 additions and 3 deletions
|
@ -4,12 +4,10 @@ const blogArticles = {
|
||||||
|
|
||||||
const blogPopulateArticleList = (elementId) => {
|
const blogPopulateArticleList = (elementId) => {
|
||||||
const element = A(`#${elementId}`);
|
const element = A(`#${elementId}`);
|
||||||
console.log(element);
|
|
||||||
|
|
||||||
let html = '';
|
let html = '';
|
||||||
for (const [k, v] of Object.entries(blogArticles)) {
|
for (const [k, v] of Object.entries(blogArticles)) {
|
||||||
html += `<a href="#" onclick="blogVisitArticle('${k}', '${v}')">${k}</a>`;
|
html += `<a href="#" onclick="blogVisitArticle('${k}', '${v}')">${k}</a>`;
|
||||||
console.log(html);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
element.html(html);
|
element.html(html);
|
||||||
|
|
|
@ -121,7 +121,6 @@ const updateFromCurrentPathname = () => {
|
||||||
for (const [route, action] of Object.entries(dynamicRoutesActions)) {
|
for (const [route, action] of Object.entries(dynamicRoutesActions)) {
|
||||||
if (pathname.startsWith(route)) {
|
if (pathname.startsWith(route)) {
|
||||||
const arg = stripTrailingSlash(pathname).split('/')[2];
|
const arg = stripTrailingSlash(pathname).split('/')[2];
|
||||||
console.log(arg);
|
|
||||||
action(arg);
|
action(arg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue