@@ -631,7 +631,7 @@ function createPlaceholderElementAndReplace (widget, trackingElement) {
631
631
632
632
// YouTube
633
633
if ( widget . replaceSettings . type === 'youtube-video' ) {
634
- ctl . messaging . notify ( 'updateYouTubeCTLAddedFlag' , true )
634
+ ctl . messaging . notify ( 'updateYouTubeCTLAddedFlag' , { youTubeCTLAddedFlag : true } )
635
635
replaceYouTubeCTL ( trackingElement , widget )
636
636
637
637
// Subscribe to changes to youtubePreviewsEnabled setting
@@ -692,7 +692,7 @@ function replaceYouTubeCTL (trackingElement, widget) {
692
692
dataKey : 'yt-preview-toggle' , // data-key attribute for button
693
693
label : widget . replaceSettings . previewToggleText , // Text to be presented with toggle
694
694
size : isMobileApp ? 'lg' : 'md' ,
695
- onClick : ( ) => ctl . messaging . notify ( 'setYoutubePreviewsEnabled' , true ) // Toggle click callback
695
+ onClick : ( ) => ctl . messaging . notify ( 'setYoutubePreviewsEnabled' , { youtubePreviewsEnabled : true } ) // Toggle click callback
696
696
} ,
697
697
withFeedback : {
698
698
label : sharedStrings . shareFeedback ,
@@ -1540,7 +1540,7 @@ function createYouTubeBlockingDialog (trackingElement, widget) {
1540
1540
)
1541
1541
previewToggle . addEventListener (
1542
1542
'click' ,
1543
- ( ) => makeModal ( widget . entity , ( ) => ctl . messaging . notify ( 'setYoutubePreviewsEnabled' , true ) , widget . entity )
1543
+ ( ) => makeModal ( widget . entity , ( ) => ctl . messaging . notify ( 'setYoutubePreviewsEnabled' , { youtubePreviewsEnabled : true } ) , widget . entity )
1544
1544
)
1545
1545
bottomRow . appendChild ( previewToggle )
1546
1546
@@ -1657,7 +1657,7 @@ function createYouTubePreview (originalElement, widget) {
1657
1657
)
1658
1658
previewToggle . addEventListener (
1659
1659
'click' ,
1660
- ( ) => ctl . messaging . notify ( 'setYoutubePreviewsEnabled' , false )
1660
+ ( ) => ctl . messaging . notify ( 'setYoutubePreviewsEnabled' , { youtubePreviewsEnabled : false } )
1661
1661
)
1662
1662
1663
1663
/** Preview Info Text */
0 commit comments