1
0
Fork 0
Browse Source

Specify loop for continuing

master
Gregory Eremin 8 years ago
parent
commit
06b9b28a23
  1. 3
      background.js

3
background.js

@ -10,6 +10,7 @@ @@ -10,6 +10,7 @@
];
var links = document.getElementsByTagName('a');
main_loop:
for (var i = 0; i < links.length; i++) {
var el = links[i],
href = el.getAttribute('href');
@ -28,7 +29,7 @@ @@ -28,7 +29,7 @@
el.addEventListener('mouseover', function(e) {
log('Link contains a stop-word "'+ word +'":', href);
});
continue;
continue main_loop;
}
};

Loading…
Cancel
Save