mirror of
https://github.com/danbulant/console-hub
synced 2026-06-18 22:11:28 +00:00
fix path in electron
This commit is contained in:
parent
c230804e97
commit
c031636bf6
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ if(typeof module !== undefined){
|
|||
refreshFiles();
|
||||
})
|
||||
var loc = window.location.pathname;
|
||||
var dir = loc.substring(0, loc.lastIndexOf('/'));
|
||||
var dir = loc.substring(1, loc.lastIndexOf('/'));//fix file:///, only on node
|
||||
ipcRenderer.send('listFiles', dir);
|
||||
} else {
|
||||
//no NODE integration, propably browser access
|
||||
|
|
|
|||
Loading…
Reference in a new issue