chore(cleanup): format code and move from js-beautify to prettier

This commit is contained in:
Joxit 2022-04-09 00:02:52 +02:00
parent ab12cceefc
commit 49fcba3f6c
No known key found for this signature in database
GPG key ID: F526592B8E012263
21 changed files with 373 additions and 302 deletions

View file

@ -52,7 +52,7 @@ export class Http {
switch (e) {
case 'loadend': {
self.oReq.addEventListener('loadend', function () {
if (this.status == 401 && !this.withCredentials) {
if (this.status === 401 && !this.withCredentials) {
const tokenAuth =
this.hasHeader('www-authenticate') && parseAuthenticateHeader(this.getResponseHeader('www-authenticate'));
self.onAuthentication(tokenAuth, (bearer) => {