Use for...in instead of for...of

This commit is contained in:
Mateusz Marzantowicz
2017-12-08 16:13:13 +01:00
committed by GitHub
parent 6122bf9c9d
commit 6e542bd6d0

View File

@@ -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.