File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export default class Cmp {
44
44
45
45
if ( testingMode !== 'normal' ) {
46
46
if ( testingMode === 'always show' ) {
47
+ self . notify ( 'cmpStarted' ) ;
47
48
cmp ( 'showConsentTool' , callback ) ;
48
49
} else {
49
50
log . debug ( 'Toolbox can be rendered only manually' ) ;
@@ -52,6 +53,7 @@ export default class Cmp {
52
53
} else if ( config . gdprAppliesGlobally || self . gdprApplies ) {
53
54
self . gdprApplies = true ;
54
55
if ( shouldBePrompted ) {
56
+ self . notify ( 'cmpStarted' ) ;
55
57
cmp ( 'showConsentTool' , callback ) ;
56
58
} else {
57
59
self . notify ( 'consentNotRequired' ) ;
@@ -63,6 +65,7 @@ export default class Cmp {
63
65
self . gdprAppliesLanguage = response . language ;
64
66
self . gdprAppliesLocation = response . location ;
65
67
if ( response . applies && shouldBePrompted ) {
68
+ self . notify ( 'cmpStarted' ) ;
66
69
cmp ( 'showConsentTool' , callback ) ;
67
70
} else {
68
71
self . notify ( 'consentNotRequired' ) ;
You can’t perform that action at this time.
0 commit comments