Skip to content

Commit

Permalink
Pair ID system: fix storageManager invocation (#9833)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi authored Apr 19, 2023
1 parent ad7d898 commit dcc99b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/pairIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
import { submodule } from '../src/hook.js';
import {getStorageManager} from '../src/storageManager.js'
import { logError } from '../src/utils.js';
import {MODULE_TYPE_UID} from '../src/activities/modules.js';

const MODULE_NAME = 'pairId';
const PAIR_ID_KEY = 'pairId';
const DEFAULT_LIVERAMP_PAIR_ID_KEY = '_lr_pairId';

export const storage = getStorageManager()
export const storage = getStorageManager({moduleType: MODULE_TYPE_UID, moduleName: MODULE_NAME});

function pairIdFromLocalStorage(key) {
return storage.localStorageIsEnabled ? storage.getDataFromLocalStorage(key) : null;
Expand Down

0 comments on commit dcc99b3

Please sign in to comment.