From 6e542bd6d05eca75994cff397442df155c02dfda Mon Sep 17 00:00:00 2001 From: Mateusz Marzantowicz Date: Fri, 8 Dec 2017 16:13:13 +0100 Subject: [PATCH] Use for...in instead of for...of --- history-deleter/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/history-deleter/history.js b/history-deleter/history.js index 798f8db..6e94b73 100644 --- a/history-deleter/history.js +++ b/history-deleter/history.js @@ -65,7 +65,7 @@ function clearAll(e) { // Loop through them and delete them one by one. var searchingHistory = browser.history.search({text: hostname}) searchingHistory.then((results) => { - for (let k of results) { + for (let k in results) { browser.history.deleteUrl({url: results[k].url}); } // Clear out the UI.