Skip to content

Commit

Permalink
Use location.replace() to modify URL of embedded frame
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jul 10, 2021
1 parent def2013 commit ed5dd0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ed5dd0a

Please sign in to comment.