Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit cc2ffc8

Browse files
committed
fix: resolve flashing icon issue
1 parent 38749ba commit cc2ffc8

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

src/botPage/view/index.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ view.initPromise.then(() => {
4141
}
4242
});
4343

44-
window.onload = () => {
45-
if (document.readyState === 'complete') {
46-
if (!isBinaryDomain) {
47-
document.getElementsByClassName('dbot-banner__separator')[0].remove();
48-
document.getElementById('logo').remove();
49-
}
50-
}
51-
};
44+
if (!isBinaryDomain) {
45+
document.getElementsByClassName('dbot-banner__separator')[0].remove();
46+
document.getElementById('logo').remove();
47+
}

src/indexPage/index.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,8 @@ const loginCheck = () => {
158158

159159
loginCheck();
160160

161-
window.onload = () => {
162-
if (document.readyState === 'complete') {
163-
if (!isBinaryDomain) {
164-
document.getElementsByClassName('half-width bottom-image puzzle-logo')[0].remove();
165-
document.getElementsByClassName('dbot-banner__separator')[0].remove();
166-
document.getElementsByClassName('half-width top-image')[0].remove();
167-
}
168-
}
169-
};
161+
if (!isBinaryDomain) {
162+
document.getElementsByClassName('half-width bottom-image puzzle-logo')[0].remove();
163+
document.getElementsByClassName('dbot-banner__separator')[0].remove();
164+
document.getElementsByClassName('half-width top-image')[0].remove();
165+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy