Skip to content

Commit

Permalink
GC-157 Boune request when the PID is missing (#10774)
Browse files Browse the repository at this point in the history
  • Loading branch information
southern-growthcode authored Nov 30, 2023
1 parent 32748b4 commit 7dd09d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/growthCodeRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ function init(config, userConsent) {

items = tryParse(storage.getDataFromLocalStorage(RTD_CACHE_KEY, null));

return callServer(configParams, items, expiresAt, userConsent);
if (configParams.pid === undefined) {
return true; // Die gracefully
} else {
return callServer(configParams, items, expiresAt, userConsent);
}
}
function callServer(configParams, items, expiresAt, userConsent) {
// Expire Cache
Expand Down

0 comments on commit 7dd09d8

Please sign in to comment.