Skip to content

Commit 165fe68

Browse files
committed
fixed area/paper parameters removal
1 parent d938365 commit 165fe68

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

vis/js/intermediate.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,12 @@ class Intermediate {
106106
this.applyForceLayout();
107107
}
108108

109-
// enable this for ability to share link to a zoomed bubble
110-
//this.zoomUrlArea();
109+
// enable this for ability to share link to a zoomed bubble / paper
110+
// if (queryParams.has("paper")) {
111+
// this.selectUrlPaper();
112+
// } else {
113+
// this.zoomUrlArea();
114+
// }
111115
// remove the following lines if the previous line is uncommented
112116
const queryParams = new URLSearchParams(window.location.search);
113117
const paramsToRemove = [];
@@ -117,8 +121,9 @@ class Intermediate {
117121
if (queryParams.has("paper")) {
118122
paramsToRemove.push("paper");
119123
}
120-
121-
removeQueryParams(...paramsToRemove);
124+
if (paramsToRemove.length > 0) {
125+
removeQueryParams(...paramsToRemove);
126+
}
122127
}
123128

124129
/**

0 commit comments

Comments
 (0)