Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IC-Tech committed Aug 27, 2020
1 parent 23aa455 commit 923eb12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const token = a => _.token
const user = a => _.user
const getuser = async (a={}) => {
if(typeof a != 'object') a = {id: a}
if(!a.id) a.me = 1
if(typeof a.id != 'number' && typeof a.id != 'string') a.me = 1
if(a.me && !_.token) return null
const err = e => {
if(a.me || (_.user && a.id == _.user.id)) {
Expand Down
2 changes: 1 addition & 1 deletion src/one.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class IAnime extends IAR {
}
}
this.page_op = {}
this.switchPage = async (a, op) => {
this.switchPage = async (a, op={}) => {
try {
clean_errors()
var _t = Date.now()
Expand Down
2 changes: 1 addition & 1 deletion src/pages/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class user extends page {
this.init = 0
a.ui = a.dirs[2] || ''
if(!this.ops.some((b,c) => b.page == a.ui ? [this.ui = c] : 0)) return this.switchPage('nope')
this.parse(this.id = a.ex)
this.parse(this.id = a.ex || 0)
console.log(a)
this.update()
}
Expand Down

0 comments on commit 923eb12

Please sign in to comment.