mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Remove DOMTokenList.prototype.replace polyfill
This commit is contained in:
parent
56daf4049e
commit
f84e5304ce
@ -79,7 +79,6 @@
|
|||||||
|
|
||||||
time {
|
time {
|
||||||
border-bottom: 1px dashed $grey-dark;
|
border-bottom: 1px dashed $grey-dark;
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,14 +6,6 @@ HTMLElement.prototype.wrap = function(wrapper) {
|
|||||||
wrapper.appendChild(this);
|
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() {
|
(function() {
|
||||||
const onPageLoaded = () => document.dispatchEvent(
|
const onPageLoaded = () => document.dispatchEvent(
|
||||||
new Event('page:loaded', {
|
new Event('page:loaded', {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user