Skip to content

Commit

Permalink
[AUT-172] - Add mode=popup query param to iframe url (#15)
Browse files Browse the repository at this point in the history
Add mode=popup query param to iframe url
  • Loading branch information
hwhmeikle committed Jul 27, 2022
1 parent 3677424 commit e95ced0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/authsignal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ export class Authsignal {
if (mode === "redirect") {
window.location.href = url;
} else {
const popupUrl = `${url}&mode=popup`;

const Popup = new PopupHandler();

Popup.show({url});
Popup.show({url: popupUrl});

return new Promise<boolean>((resolve) => {
const onMessage = (event: MessageEvent) => {
Expand Down

0 comments on commit e95ced0

Please sign in to comment.