Skip to content

Commit

Permalink
added a try-catch for a staement as it was breaking CI sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-harshad-mane committed Aug 14, 2019
1 parent d09eab4 commit e9606bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/widespaceBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ export const spec = {
function storeData(data, name, stringify = true) {
const value = stringify ? JSON.stringify(data) : data;
if (LOCAL_STORAGE_AVAILABLE) {
localStorage.setItem(name, value);
try {
// adding try-catch as this code was breaking CI sometimes for IE-11
localStorage.setItem(name, value);
} catch (e) {}
return true;
} else if (COOKIE_ENABLED) {
const theDate = new Date();
Expand Down

0 comments on commit e9606bf

Please sign in to comment.