“onBeforeAjax” event handler with app.show(‘/logout’)
and using “getStatus()” of UserPlugin with a app.show(‘/login’)) in .then()
but javascript errors occur (“rejected promise” due to app.show()) after “login” and “logout”.
when show command is blocked by any means, this promise is rejected. It is not an error, just a signal that promise can’t be fulfilled
when rejection of promise is not handled, browser will show the above error message
So promise rejection is not a sign of error.
To disable message you can
promise catch or finally handlers for the show command
or
use something like next
window.Promise = webix.promise;
which will replace default promise implementation with a custom one, which works the same but doesn’t show error messages for unresolved promises. It can hide the other rejected promises, which you want to see, though, so it is not recommended.