aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-12-06 14:58:42 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-12-06 14:58:42 +0200
commitd1950bc5f1a3cc737bbb43418738f5da7955ee7f (patch)
tree77b3abcf7bff1dcfa9fccc211aaaac2134f2104b /ext/bg/js
parenta5a6351cceacde6f440d28ff7f9afa7c6c1ff251 (diff)
use substring over slice for strings
Diffstat (limited to 'ext/bg/js')
-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) {