exclude the "SP Consent Message" on nexus from the cleared iframes

This commit is contained in:
EzioTheDeadPoet
2023-10-31 13:45:38 +01:00
parent 40ccbe761c
commit f425bbc9e9

View File

@ -21,7 +21,7 @@ public class ManualDownloadHandler : BrowserWindowViewModel
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;