Skip to content

Commit

Permalink
Fix url parsing (#353) (#354)
Browse files Browse the repository at this point in the history
(cherry picked from commit 105f68c)

Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent bf796cd commit 4193e49
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 4193e49

Please sign in to comment.