Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Fix IE11 TypeError about read-only properties assignment in strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
microbouji committed May 18, 2020
1 parent 721bd67 commit 4eb0502
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/layout/c-nav.comp.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class CNavComponent extends HTMLElement {
liNavItem.className = 'nav-item';

const aNavLink = document.createElement('a');
aNavLink.classList = 'nav-link';
aNavLink.classList.add('nav-link');
aNavLink.href = href;
aNavLink.innerHTML = content;

Expand Down
2 changes: 1 addition & 1 deletion app/components/popular-tags.comp.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class PopularTagsComponent extends HTMLElement {
tagEl.className = 'tag-pill tag-default';
tagEl.innerHTML = tag;
tagEl.href = '#/';
tagEl.style = "cursor: pointer;";
tagEl.setAttribute('style', 'cursor: pointer;');
return tagEl;
}

Expand Down

0 comments on commit 4eb0502

Please sign in to comment.