Skip to content

Commit

Permalink
refactor: use doc argument in web_message js code
Browse files Browse the repository at this point in the history
  • Loading branch information
charsleysa authored and panva committed Jan 17, 2024
1 parent 23997c5 commit da3198b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/response_modes/web_message.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function webMessage(ctx, redirectUri, response) {
var authorization_response = { type: 'authorization_response', response: response };
var respond = function (target, origin) {
document.scripts[0].parentElement.removeChild(document.scripts[0]);
doc.scripts[0].parentElement.removeChild(doc.scripts[0]);
target.postMessage(authorization_response, origin);
win.close();
};
Expand Down

0 comments on commit da3198b

Please sign in to comment.