1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-19 11:18:42 +02:00

Use location.replace() to modify URL of embedded frame

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1648
This commit is contained in:
Raymond Hill 2021-07-10 09:56:36 -04:00
parent def2013692
commit ed5dd0a791
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -83,7 +83,7 @@ const loadDashboardPanel = function(pane, first) {
uDom('.tabButton.selected').toggleClass('selected', false);
tabButton.classList.add('selected');
tabButton.scrollIntoView();
uDom.nodeFromId('iframe').setAttribute('src', pane);
uDom.nodeFromId('iframe').contentWindow.location.replace(pane);
if ( pane !== 'no-dashboard.html' ) {
vAPI.localStorage.setItem('dashboardLastVisitedPane', pane);
}