modify loading page

This commit is contained in:
Gabe Yuan
2023-08-09 20:53:37 +08:00
parent 8fd7e7c13e
commit e588ea9f55

View File

@@ -23,7 +23,6 @@ export default function Options() {
(async () => {
let i = 0;
for (;;) {
await sleep(1000);
if (window.GM) {
setReady(true);
break;
@@ -33,6 +32,8 @@ export default function Options() {
setError(true);
break;
}
await sleep(1000);
}
})();
}, []);