|
@@ -22,9 +22,11 @@
|
|
|
|
|
|
|
|
(() => {
|
|
(() => {
|
|
|
|
|
|
|
|
- Element.prototype.getBoundingClientRect = window._singleFile_getBoundingClientRect;
|
|
|
|
|
- delete window._singleFile_getBoundingClientRect;
|
|
|
|
|
- scrollBy(0, 1);
|
|
|
|
|
- requestAnimationFrame(() => scrollBy(0, -1));
|
|
|
|
|
|
|
+ if (window._singleFile_getBoundingClientRect) {
|
|
|
|
|
+ Element.prototype.getBoundingClientRect = window._singleFile_getBoundingClientRect;
|
|
|
|
|
+ delete window._singleFile_getBoundingClientRect;
|
|
|
|
|
+ scrollBy(0, 1);
|
|
|
|
|
+ requestAnimationFrame(() => scrollBy(0, -1));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
})();
|
|
})();
|