aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_page.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_page.html b/background_page.html
index b6b72406..a56028bc 100644
--- a/background_page.html
+++ b/background_page.html
@@ -339,7 +339,7 @@
function getHistory(args, port) {
useHistory(function(history) {
port.postMessage({
- history: history.slice(history.length - args.maxResults)
+ history: history.slice(Math.max(history.length - args.maxResults, 0))
});
});
};