Skip to content

Commit a967080

Browse files
format
1 parent b8d804b commit a967080

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/sidebar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ function create($container, $toggler) {
489489
$el.show = show;
490490
$el.hide = hide;
491491
$el.toggle = toggle;
492-
$el.onshow = () => { };
492+
$el.onshow = () => {};
493493
$el.getWidth = function () {
494494
const width = innerWidth * 0.7;
495495
return mode === "phone" ? (width >= 350 ? 350 : width) : MIN_WIDTH;

src/lib/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class AuthService {
7474
await this._exec("isLoggedIn");
7575
return true;
7676
} catch (error) {
77+
console.error(error);
7778
// error is typically the status code (0 if no token, 401 if invalid)
7879
return false;
7980
}
@@ -92,7 +93,6 @@ class AuthService {
9293
async getAvatar() {
9394
try {
9495
const userData = await this.getUserInfo();
95-
console.log(userData);
9696
if (!userData) return null;
9797

9898
if (userData.github) {

0 commit comments

Comments
 (0)