Make easy eslint fixes to links.js

This commit is contained in:
Jonny Barnes 2016-06-14 16:26:02 +01:00
parent 258ec41f90
commit 10c667e42c

View file

@ -6,10 +6,10 @@ var ytidregex = /watch\?v=([A-Za-z0-9\-_]+)/;
//grab the notes and loop through them
var notes = document.querySelectorAll('.e-content');
for(var i = 0; i < notes.length; i++) {
for (var i = 0; i < notes.length; i++) {
//get Youtube ID
var ytid = notes[i].textContent.match(ytidregex);
if(ytid !== null) {
if (ytid !== null) {
var id = ytid[1];
var iframe = document.createElement('iframe');
iframe.classList.add('youtube');