Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Marquise Rosier committed Feb 2, 2024
1 parent 4d3dffb commit a7274a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/connectors/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-restricted-globals */
import { useCollator } from '@adobe/react-spectrum';
import sampleRUM from '../lib-franklin.js';

/**
* Gets information on queries from rum-queries.json
*/
Expand Down Expand Up @@ -47,11 +47,11 @@ export function intervalOffsetToDates(offset, interval) {
return { start: startdate, end: enddate };
}

export function getDataDates(endpoint) {
export function getDataDates() {
const pms = new URLSearchParams(location.search);
const startdate = pms.get('startdate');
const enddate = pms.get('enddate');
return {start: startdate, end: enddate};
return { start: startdate, end: enddate };
}

/**
Expand Down Expand Up @@ -211,12 +211,12 @@ export async function queryRequest(endpoint, endpointHost, qps = {}) {
checkData();
}

export function handleRedirect(url, domainkey, startdate, enddate, limit){
export function handleRedirect(url, domainkey, startdate, enddate, limit) {
const newQp = new URLSearchParams();
newQp.set('url', url);
newQp.set('domainkey', domainkey);
newQp.set('startdate', startdate);
newQp.set('enddate', enddate);
if(limit) newQp.set('limit', limit);
location.href = `https://${location.hostname}${location.pathname}?${newQp.toString()}`
if (limit) newQp.set('limit', limit);
location.href = `https://${location.hostname}${location.pathname}?${newQp.toString()}`;
}
2 changes: 1 addition & 1 deletion static/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/main.js.map

Large diffs are not rendered by default.

0 comments on commit a7274a6

Please sign in to comment.