Skip to content

Commit

Permalink
Remove DOMTokenList.prototype.replace polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Oct 8, 2021
1 parent 56daf40 commit f84e530
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion source/css/_common/components/post/post-header.styl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@

time {
border-bottom: 1px dashed $grey-dark;
cursor: pointer;
}
}

Expand Down
8 changes: 0 additions & 8 deletions source/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ HTMLElement.prototype.wrap = function(wrapper) {
wrapper.appendChild(this);
};

// https://caniuse.com/mdn-api_element_classlist_replace
if (typeof DOMTokenList.prototype.replace !== 'function') {
DOMTokenList.prototype.replace = function(remove, add) {
this.remove(remove);
this.add(add);
};
}

(function() {
const onPageLoaded = () => document.dispatchEvent(
new Event('page:loaded', {
Expand Down

0 comments on commit f84e530

Please sign in to comment.