mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
Use for...in instead of for...of
This commit is contained in:
committed by
GitHub
parent
6122bf9c9d
commit
6e542bd6d0
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user