From 06b9b28a2340f4acd0d6ed8707f14cfaad2a06e6 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sat, 5 Jul 2014 16:08:37 +0700 Subject: [PATCH] Specify loop for continuing --- background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index 4dc660c..295409a 100644 --- a/background.js +++ b/background.js @@ -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 @@ el.addEventListener('mouseover', function(e) { log('Link contains a stop-word "'+ word +'":', href); }); - continue; + continue main_loop; } };