Skip to content

Commit 967dcc6

Browse files
committed
make sure we only register once
1 parent e7db2b9 commit 967dcc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/secureSignal_shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export class UidSecureSignalProvider implements UidSecureSignalProviderType {
3535
window.googletag.secureSignalProviders = window.googletag.secureSignalProviders || [];
3636

3737
if (!this.hasRegisteredSecureSignals) {
38+
this.hasRegisteredSecureSignals = true;
3839
window.googletag.secureSignalProviders.push({
3940
id: this.isEuid ? 'euid.eu' : 'uidapi.com',
4041
collectorFunction: async () => {
@@ -45,7 +46,6 @@ export class UidSecureSignalProvider implements UidSecureSignalProviderType {
4546
},
4647
});
4748
}
48-
this.hasRegisteredSecureSignals = true;
4949
};
5050

5151
public logging = (message: string) => {

0 commit comments

Comments
 (0)