Work on auth error handling / reinstall
This commit is contained in:
parent
ef8a977f38
commit
f126e3b21b
5 changed files with 62 additions and 13 deletions
|
@ -117,6 +117,12 @@
|
|||
|
||||
function onError(ev) {
|
||||
var e = ev.error;
|
||||
|
||||
if (e.name === 'HTTPError' && (e.message == 401 || e.message == 403)) {
|
||||
extension.install();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ev.proto) {
|
||||
console.log(e);
|
||||
throw e;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue