Commit 8262cb2f authored by Tim Zallmann's avatar Tim Zallmann

CHanged to Helper Method

parent 8cd4a7cf
......@@ -31,7 +31,7 @@ export default {
let selectedFile = this.files.find(file => location.pathname.indexOf(file.url) > -1);
if (!selectedFile) {
// Maybe it is not in the current tree but in the opened tabs
selectedFile = Store.openedFiles.find(file => location.pathname.indexOf(file.url) > -1);
selectedFile = Helper.getFileFromPath(location.pathname);
}
if (selectedFile) {
if (selectedFile.url !== this.activeFile.url) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment