Skip to content

Commit

Permalink
exclude the "SP Consent Message" on nexus from the cleared iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
EzioTheDeadPoet committed Oct 31, 2023
1 parent 40ccbe7 commit f425bbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected override async Task Run(CancellationToken token)

var task = WaitForDownloadUri(token, async () =>
{
await RunJavaScript("Array.from(document.getElementsByTagName(\"iframe\")).forEach(f => f.remove())");
await RunJavaScript("Array.from(document.getElementsByTagName(\"iframe\")).forEach(f => {if (f.title != \"SP Consent Message\") f.remove()})");
});
await NavigateTo(md.Url);
var uri = await task;
Expand Down

0 comments on commit f425bbc

Please sign in to comment.