Total Complexity | 3 |
Complexity/F | 1.5 |
Lines of Code | 14 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import Video from './blocks/video/modules/Video'; |
||
2 | |||
3 | document.addEventListener("DOMContentLoaded", () => { |
||
4 | window.HELP_IMPROVE_VIDEOJS = false; |
||
5 | |||
6 | let elements = document.querySelectorAll('*[data-module="video-block"]'); |
||
7 | if (elements.length > 0) { |
||
8 | window.videos = []; |
||
9 | |||
10 | [].forEach.call(elements, (element) => { |
||
11 | window.videos.push(new Video(element)); |
||
12 | }); |
||
13 | } |
||
14 | }); |