1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00

Fixed type in rejector

This commit is contained in:
Bryan Roe
2020-06-12 01:27:31 -07:00
parent 1926fd82c8
commit 5b1bf0f25c
2 changed files with 9 additions and 9 deletions

View File

@@ -587,7 +587,7 @@ function macos_messageBox()
{
var res = this.stdout.str.substring(this.stdout.str.indexOf("}'\x1b"));
res = res.substring(1 + res.indexOf('\n'));
res = res.substring(0, res.indexOf('\x1b'));
res = res.substring(0, res.indexOf('\x1b')).trim();
if (res == '_TIMEOUT_')
{
this.promise._rej('TIMEOUT');
@@ -600,7 +600,7 @@ function macos_messageBox()
}
else
{
this.promise_rej('denied');
this.promise._rej('denied');
}
}
});