Fallback for Signin window opening
This commit is contained in:
parent
92f318938a
commit
4559b5b99a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue