mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2026-05-27 05:02:49 +00:00
chore(cleanup): format code and move from js-beautify to prettier
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user