fix: fix loading when readyState is "interactive"
This commit is contained in:
parent
8c249ad624
commit
c636ee9576
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ let Theme = ``;
|
|||
const ThemeURL = URL.createObjectURL(ThemeBlob);
|
||||
document.head.innerHTML += `<link href="${ThemeURL}" rel="stylesheet" type="text/css">`;
|
||||
}
|
||||
if (document.readyState === 'complete') {
|
||||
|
||||
if (document.readyState === 'complete' || document.readyState === 'interactive') {
|
||||
PageLoad()
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', PageLoad);
|
||||
|
|
|
|||
Reference in a new issue