Fallback for Signin window opening

This commit is contained in:
Sam 2018-07-15 02:15:04 +10:00
parent 92f318938a
commit 4559b5b99a
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ export default {
let left = ((width / 2) - (w / 2)) + dualScreenLeft
let top = ((height / 2) - (h / 2)) + dualScreenTop
let newWindow = window.open(this.url, 'Sign in with Plex.tv', 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left)
if (!newWindow) {
newWindow = window.open(this.url, '_blank')
}
// Puts focus on the newWindow
if (window.focus) {
newWindow.focus()