Replace array splice operator with concat

This commit is contained in:
George Tryfonas 2020-10-20 07:42:30 +03:00
parent eaf993189b
commit c556de4999
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ Viewer.prototype = {
}, false);
// handle links
[this.outline, ...Array.from(this.container.querySelectorAll('a.l'))].forEach(function(ele) {
[this.outline].concat(Array.from(this.container.querySelectorAll('a.l'))).forEach(function(ele) {
ele.addEventListener('click', self.link_handler.bind(self), false);
});