Skip to content

Commit

Permalink
Fix invalid argument when top coordinate isn't integer
Browse files Browse the repository at this point in the history
  • Loading branch information
rydama committed Jun 17, 2018
1 parent f3834cb commit 1f25ad3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/login-panel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ export default class LoginPanel extends React.Component {
"&response_type=token"

let width = 600
let height = 400
let height = 600
let left = (screen.width/2) - (width/2)
let top = (screen.height/2) - (height/2)

let options = {
"url": authUrl,
"width": width,
"height": height,
"left": left,
"top": top,
"left": Math.round(left),
"top": Math.round(top),
"type": "popup"
}

Expand Down

0 comments on commit 1f25ad3

Please sign in to comment.