mirror of https://github.com/keeweb/keeweb.git
Removing duplicate joinPath
This commit is contained in:
parent
17c0bd7b25
commit
12603ff2ab
|
@ -35,6 +35,9 @@ const Launcher = {
|
|||
getWorkDirPath: function(fileName) {
|
||||
return this.getDataPath(fileName).join('/');
|
||||
},
|
||||
joinPath: function(...parts) {
|
||||
return [...parts].join('/');
|
||||
},
|
||||
writeFile: function(path, data, callback) {
|
||||
const writeFile = fileEntry => {
|
||||
fileEntry.createWriter(fileWriter => {
|
||||
|
@ -112,9 +115,6 @@ const Launcher = {
|
|||
file: parts.join('/')
|
||||
};
|
||||
},
|
||||
joinPath: function(dir, fileName) {
|
||||
return [dir, fileName].join('/');
|
||||
},
|
||||
createFsWatcher: function(path) {
|
||||
return null; // not in android with content provider
|
||||
},
|
||||
|
|
|
@ -119,9 +119,6 @@ const Launcher = {
|
|||
file: path.basename(fileName)
|
||||
};
|
||||
},
|
||||
joinPath: function(dir, fileName) {
|
||||
return this.req('path').join(dir, fileName);
|
||||
},
|
||||
createFsWatcher: function(path) {
|
||||
return this.req('fs').watch(path, { persistent: false });
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue