Skip to content

Commit

Permalink
Adnuntius Bid Adapter: bugfix for storageFunction (#10869)
Browse files Browse the repository at this point in the history
* Removed linting issues

* Fixed merge issues.

* Bugfix on storageTool.
  • Loading branch information
mikael-lundin authored Dec 28, 2023
1 parent 984abfa commit 325cd3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/adnuntiusBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ const storageTool = (function () {

const getMetaInternal = function () {
if (!storage.localStorageIsEnabled()) {
return {};
return [];
}

let parsedJson;
try {
parsedJson = JSON.parse(storage.getDataFromLocalStorage(META_DATA_KEY));
} catch (e) {
return {};
return [];
}

let filteredEntries = parsedJson ? parsedJson.filter((datum) => {
Expand Down

0 comments on commit 325cd3c

Please sign in to comment.