mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 22:38:31 +02:00
Move the comment about limiting items to the place it belongs.
This commit is contained in:
@@ -17,13 +17,13 @@ chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
|
||||
|
||||
chrome.history.search(
|
||||
// Search for all history entries for the current windows domain.
|
||||
// Because this could be a lot of entries, lets limit it to 5.
|
||||
{text: hostname, maxResults: 5},
|
||||
function(results) {
|
||||
// What to show if there are no results.
|
||||
if (results.length < 1) {
|
||||
no_history(hostname);
|
||||
} else {
|
||||
// Because this could be a lot of entries, lets limit it to 5.
|
||||
for (var k in results) {
|
||||
var history = results[k];
|
||||
var li = document.createElement('p');
|
||||
|
||||
Reference in New Issue
Block a user