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 <[email protected]>
  • Loading branch information
rupal-bq authored May 7, 2024
1 parent 76c567f commit 105f68c
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 105f68c

Please sign in to comment.