aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index b2bc172f..d2e0fd56 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -360,7 +360,7 @@ class DisplaySearch extends Display {
setTitleText(text) {
// Chrome limits title to 1024 characters
if (text.length > 1000) {
- text = text.slice(0, 1000) + '...';
+ text = text.substring(0, 1000) + '...';
}
if (text.length === 0) {