mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 09:39:38 +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:
parent
def2013692
commit
ed5dd0a791
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user