From e9606bfd348dc16c108ec3af807b95586ece5bbe Mon Sep 17 00:00:00 2001 From: Harshad Mane Date: Tue, 13 Aug 2019 17:05:11 -0700 Subject: [PATCH] added a try-catch for a staement as it was breaking CI sometimes --- modules/widespaceBidAdapter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/widespaceBidAdapter.js b/modules/widespaceBidAdapter.js index 28b2e377540..5767b0a2463 100644 --- a/modules/widespaceBidAdapter.js +++ b/modules/widespaceBidAdapter.js @@ -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();