mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 20:41:52 +08:00
Chore: update ESLint config
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
const init = () => {
|
||||
window.adsbygoogle = {
|
||||
loaded: true,
|
||||
push: function () {
|
||||
push() {
|
||||
}
|
||||
};
|
||||
const phs = document.querySelectorAll('.adsbygoogle');
|
||||
@@ -21,11 +22,11 @@
|
||||
}
|
||||
};
|
||||
if (
|
||||
document.querySelectorAll('.adsbygoogle').length === 0 &&
|
||||
document.readyState === 'loading'
|
||||
document.querySelectorAll('.adsbygoogle').length === 0
|
||||
&& document.readyState === 'loading'
|
||||
) {
|
||||
window.addEventListener('DOMContentLoaded', init, { once: true });
|
||||
} else {
|
||||
init();
|
||||
}
|
||||
})();
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user