diff --git a/src/webparts/LaserficheRepositoryAccessWebPart/components/LaserficheRepositoryAccessWebPart.tsx b/src/webparts/LaserficheRepositoryAccessWebPart/components/LaserficheRepositoryAccessWebPart.tsx index f571423..18a16d0 100644 --- a/src/webparts/LaserficheRepositoryAccessWebPart/components/LaserficheRepositoryAccessWebPart.tsx +++ b/src/webparts/LaserficheRepositoryAccessWebPart/components/LaserficheRepositoryAccessWebPart.tsx @@ -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') { diff --git a/src/webparts/laserficheAdminConfiguration/components/LaserficheAdminConfiguration.tsx b/src/webparts/laserficheAdminConfiguration/components/LaserficheAdminConfiguration.tsx index 730dc00..4626301 100644 --- a/src/webparts/laserficheAdminConfiguration/components/LaserficheAdminConfiguration.tsx +++ b/src/webparts/laserficheAdminConfiguration/components/LaserficheAdminConfiguration.tsx @@ -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') { diff --git a/src/webparts/sendToLaserficheLoginComponent/components/SendToLaserficheLoginComponent.tsx b/src/webparts/sendToLaserficheLoginComponent/components/SendToLaserficheLoginComponent.tsx index 5ec2aeb..887a97a 100644 --- a/src/webparts/sendToLaserficheLoginComponent/components/SendToLaserficheLoginComponent.tsx +++ b/src/webparts/sendToLaserficheLoginComponent/components/SendToLaserficheLoginComponent.tsx @@ -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') {