Skip to content

Commit

Permalink
Run app in the pop under window
Browse files Browse the repository at this point in the history
  • Loading branch information
AKalinich-Luxoft committed Feb 11, 2020
1 parent 6d922a5 commit 195d468
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/controller/InfoController.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,11 @@ SDL.InfoController = Em.Object.create(
target_url += "&sdl-port=" + properties['port']
target_url += "&sdl-transport-role=" + properties['role'];

window.open(target_url, "_blank");
const popup_width = screen.width / 3;
const popup_height = screen.height / 3;
const popup_left = screen.width - popup_width - 5;
window.open(target_url, "s", `width=${popup_width}, height=${popup_height}, left=${popup_left}, top=0, resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no`).blur();
window.focus();
},

/**
Expand Down

0 comments on commit 195d468

Please sign in to comment.