From b902b69d1c98835725fa16510314770665e47515 Mon Sep 17 00:00:00 2001 From: Edson Amaya Date: Fri, 2 Sep 2022 19:31:34 -0500 Subject: [PATCH] Add param to method on loadPreference on Preference interface --- src/consent-manager-builder/preferences.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/consent-manager-builder/preferences.ts b/src/consent-manager-builder/preferences.ts index 824c4995..481ee7fb 100644 --- a/src/consent-manager-builder/preferences.ts +++ b/src/consent-manager-builder/preferences.ts @@ -8,7 +8,7 @@ const DEFAULT_COOKIE_NAME = 'tracking-preferences' const COOKIE_DEFAULT_EXPIRES = 365 export interface PreferencesManager { - loadPreferences(): Preferences + loadPreferences(cookieName?: string): Preferences onPreferencesSaved(listener: (prefs: Preferences) => void): void savePreferences(prefs: SavePreferences): void }