Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jrlarano committed Sep 18, 2024
1 parent 6706546 commit 088f949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sgn-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ if (isBrowser()) {

if (apiKey) scriptConfig.apiKey = apiKey;

if (isStaging) scriptConfig.coreUrl = coreUrlStaging;

if (trackId && !isStaging)
scriptConfig.eventTracker = new Tracker({trackId});

if (isStaging) scriptConfig.coreUrl = coreUrlStaging;

config.set(scriptConfig);

if (component === 'paged-publication-viewer') {
Expand Down

0 comments on commit 088f949

Please sign in to comment.