From 15b688c9a4f15a7669fd1fa579f9c76e1a917949 Mon Sep 17 00:00:00 2001 From: rcheptanariu <35690143+rcheptanariu@users.noreply.github.com> Date: Wed, 27 Jul 2022 18:54:16 +0300 Subject: [PATCH] InvibesBidAdapter - local storage bypass fixed (#8720) * InvibesBidAdapter - local storage bypass fixed * InvibesBidAdapter - fixed error when param not defined Co-authored-by: Patrick McCann --- modules/invibesBidAdapter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/invibesBidAdapter.js b/modules/invibesBidAdapter.js index 99434e18adb..2f80b89fb9c 100644 --- a/modules/invibesBidAdapter.js +++ b/modules/invibesBidAdapter.js @@ -381,7 +381,10 @@ function getUserIds(bidUserId) { function parseQueryStringParams() { let params = {}; try { - params = JSON.parse(readFromLocalStorage('ivbs')); + let storedParam = storage.getDataFromLocalStorage('ivbs'); + if (storedParam != null) { + params = JSON.parse(storedParam); + } } catch (e) { } let re = /[\\?&]([^=]+)=([^\\?&#]+)/g;