Skip to content

Commit

Permalink
android fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Feb 9, 2024
1 parent 17e0781 commit f534c83
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/renderer/pages/AndroidEndPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ function AndroidEndPage() {
messagePercent = messagePercent.replaceAll('\n\r', '');
messagePercent = messagePercent.replaceAll('\r', '');
setMsg({ message: messageText, percentage: messagePercent });
if (messageText.includes('100')) {
setStatePage({ ...statePage, disabledNext: false });
}
});
};

Expand Down Expand Up @@ -125,11 +128,7 @@ function AndroidEndPage() {
useEffect(() => {
if (disabledNext) {
const interval = setInterval(() => {
if (system === 'win32') {
readMSG();
} else {
readMSG();
}
readMSG();

if (message.includes('100ANDROID')) {
clearInterval(interval);
Expand Down

0 comments on commit f534c83

Please sign in to comment.