Skip to content

Commit

Permalink
nit: eslint update
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchoi-dev committed Feb 20, 2024
1 parent ec14e1c commit cebc106
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ const STAGE_SELECTOR_ID_API_BASE = 'https://aos-stage.adobe.io/offers:search.sel
const API_KEY = 'universalPromoTerm';

function searchToObject() {
const pairs = window.location.search.substring(1).split("&");
const pairs = window.location.search.substring(1).split('&');
const obj = {};
let pair;

for (let i in pairs ) {
if ( pairs[i] === "" ) continue;
if ( pairs[i] === '' ) continue;

pair = pairs[i].split("=");
pair = pairs[i].split('=');
obj[ decodeURIComponent( pair[0] ) ] = decodeURIComponent( pair[1] );
}

Expand Down

0 comments on commit cebc106

Please sign in to comment.