Skip to content

Commit

Permalink
Fix url parsing (#353)
Browse files Browse the repository at this point in the history
Signed-off-by: Rupal Mahajan <maharup@amazon.com>
(cherry picked from commit 105f68c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed May 7, 2024
1 parent bf796cd commit b51c9c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/components/context_menu/context_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ $(function () {

/* generate a report if flagged in URL params */
const checkURLParams = async () => {
if (!location.href.includes('#')) return;
const [hash, query] = location.href.split('#')[1].split('?');
const params = new URLSearchParams(query);
const id = params.get(GENERATE_REPORT_PARAM);
Expand Down

0 comments on commit b51c9c9

Please sign in to comment.