Skip to content

Commit

Permalink
fix(ui): open in new window
Browse files Browse the repository at this point in the history
Ref: 3473
  • Loading branch information
robertsLando committed Dec 7, 2023
1 parent b5d88be commit c618fd1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1374,9 +1374,7 @@ export default {
this.toggleDrawer()
}
const hash = window.location.hash.substr(1)
if (hash === 'no-topbar') {
if (window.location.hash.includes('#no-topbar')) {
this.hideTopbar = true
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/custom/NodePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ export default {
},
newWindow() {
const newwindow = window.open(
Routes.controllerChart + '#no-topbar',
'#' + Routes.controllerChart + '/#no-topbar',
'BG-RSSI-Chart',
'height=800,width=1200,status=no,toolbar:no,scrollbars:no,menubar:no', // check https://www.w3schools.com/jsref/met_win_open.asp for all available specs
)
Expand Down
2 changes: 1 addition & 1 deletion src/views/Debug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default {
},
newWindow() {
const newwindow = window.open(
window.location.href + '#no-topbar',
window.location.href + '/#no-topbar',
'DEBUG',
'height=800,width=600,status=no,toolbar:no,scrollbars:no,menubar:no', // check https://www.w3schools.com/jsref/met_win_open.asp for all available specs
)
Expand Down

0 comments on commit c618fd1

Please sign in to comment.