mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue