mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Remove DOMTokenList.prototype.replace polyfill
This commit is contained in:
parent
56daf4049e
commit
f84e5304ce
@ -79,7 +79,6 @@
|
||||
|
||||
time {
|
||||
border-bottom: 1px dashed $grey-dark;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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', {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user