Skip to content

Commit

Permalink
resize window
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandria.gomez authored and alexandria.gomez committed Oct 13, 2023
1 parent ab6715e commit 6e2c694
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ export default function LaserficheRepositoryAccessWebPart(
const url =
props.context.pageContext.web.absoluteUrl +
'/SitePages/LaserficheSignIn.aspx?autologin';
const loginWindow = window.open(url, '_blank', 'popup');
const loginWindow = window.open(url, 'loginWindow', 'popup');
loginWindow.resizeTo(800, 600);
window.addEventListener('message', (event) => {
if (event.origin === window.origin) {
if (event.data === 'loginWindowSuccess') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export default function LaserficheAdminConfiguration(
const url =
props.context.pageContext.web.absoluteUrl +
'/SitePages/LaserficheSignIn.aspx?autologin';
const loginWindow = window.open(url, '_blank', 'popup');
const loginWindow = window.open(url, 'loginWindow', 'popup');
loginWindow.resizeTo(800, 600);
window.addEventListener('message', (event) => {
if (event.origin === window.origin) {
if (event.data === 'loginWindowSuccess') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ export default function SendToLaserficheLoginComponent(
props.context.pageContext.web.absoluteUrl +
'/SitePages/LaserficheSignIn.aspx?autologin';

const loginWindow = window.open(url, '_blank', 'popup');
const loginWindow = window.open(url, 'loginWindow', 'popup');
loginWindow.resizeTo(800, 600);
window.addEventListener('message', (event) => {
if (event.origin === window.origin) {
if (event.data === 'loginWindowSuccess') {
Expand Down

0 comments on commit 6e2c694

Please sign in to comment.