Skip to content

Commit 4dbd06a

Browse files
committed
MOBILE-2178 formattext: Get video data from data-setup-lazy attribute
1 parent c343b32 commit 4dbd06a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/core/directives/formattext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ angular.module('mm.core')
342342
return;
343343
}
344344

345-
var data = JSON.parse(el.getAttribute('data-setup') || '{}'),
345+
var data = JSON.parse(el.getAttribute('data-setup') || el.getAttribute('data-setup-lazy') || '{}'),
346346
youtubeId = data.techOrder && data.techOrder[0] && data.techOrder[0] == 'youtube' && data.sources && data.sources[0] &&
347347
data.sources[0].src && youtubeGetId(data.sources[0].src);
348348

0 commit comments

Comments
 (0)