diff --git a/client/dom/index.js b/client/dom/index.js index 1869b6cb..fd7bda5a 100644 --- a/client/dom/index.js +++ b/client/dom/index.js @@ -552,7 +552,7 @@ function CmdProto() { const from = (a) => a === '..' ? 1 : 0; const i = from(name); - return [].slice.call(files, i); + return [...files].slice(i); }; /** diff --git a/client/listeners.js b/client/listeners.js index e39478d1..5be6f0ee 100644 --- a/client/listeners.js +++ b/client/listeners.js @@ -370,7 +370,7 @@ function setCurrentFileByEvent(event) { } function getFilesRange(from, to) { - const files = [...DOM.getFiles()].slice(1); + const files = DOM.getAllFiles(); const names = DOM.getFilenames(files); const getNameIndex = getIndex(names);