Skip to content
Open

done #155

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions 02/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@ console.log('DOM');
const linksEl = document.querySelectorAll('[data-url]');
linksEl.forEach((link) => {
const url = link.dataset.url;
if (url && url !== 'null') {
link.setAttribute('href', url);
} else {
link.setAttribute('href', '#');
}
link.setAttribute('href', url);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

});