Skip to content

TagSpaces is an offline, open source, document manager with tagging support

js style improvements

uggrock722f3358ac6d
diff --git a/data/chromelight/chrome.api.js b/data/chromelight/chrome.api.js
index 4a1949bc1..6088e8f40 100644
--- a/data/chromelight/chrome.api.js
+++ b/data/chromelight/chrome.api.js
@@ -177,14 +177,14 @@ define(function(require, exports, module) {
"path": path
});
}
- if(resultCallback) {
+ if (resultCallback) {
resultCallback(anotatedDirList);
} else {
TSPOSTIO.listDirectory(anotatedDirList);
}
})
.fail(function(data) {
- if(resultCallback) {
+ if (resultCallback) {
resultCallback(anotatedDirList);
} else {
TSPOSTIO.errorOpeningPath(dirPath);
@@ -195,7 +195,7 @@ define(function(require, exports, module) {
var getDirectoryMetaInformation = function(dirPath, readyCallback) {
listDirectory(dirPath, function(anotatedDirList) {
- TSCORE.metaFileList = anotatedDirList;
+ TSCORE.metaFileList = anotatedDirList;
readyCallback(anotatedDirList);
});
};