|
|
@@ -113,7 +113,7 @@ function getUser() { |
|
|
|
const validTypes = ['image/jpeg', 'image/png'] |
|
|
|
|
|
|
|
if (!b || !validTypes.includes(b.type) || b.size <= 1) { |
|
|
|
return fetch("/assets/image/empty-avatar.jpg"). |
|
|
|
return fetch("/assets/image/default-avatar.jpg"). |
|
|
|
then(r => r.blob()).then( a => this.user.avatar = a ) |
|
|
|
} |
|
|
|
|
|
|
@@ -121,12 +121,6 @@ function getUser() { |
|
|
|
return getLetterhead(token) |
|
|
|
}).then(b => { |
|
|
|
const validTypes = ['image/jpeg', 'image/png'] |
|
|
|
|
|
|
|
if (!validTypes.includes(b.type) || b.size <= 1) { |
|
|
|
return fetch("/assets/image/empty-letterhead.jpg"). |
|
|
|
then(r => r.blob()).then( a => this.user.letterhead = a ) |
|
|
|
} |
|
|
|
|
|
|
|
this.user.letterhead = b |
|
|
|
}) |
|
|
|
|
|
|
|