Skip to content

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

cleaning up

Ilian Sapundshiev8f9c77b29fbd
diff --git a/app/services/cordova-io.js b/app/services/cordova-io.js
index c5e59d8e4..f5bf58885 100644
--- a/app/services/cordova-io.js
+++ b/app/services/cordova-io.js
@@ -369,34 +369,6 @@ export default class CordovaIO {
// return appDataPath;
};
- /**
- * Checks if new version is available
- */
- checkNewVersion = () => {
- console.log('Checking for new version...');
- /* const cVer =
- Config.DefaultSettings.appVersion +
- '.' +
- Config.DefaultSettings.appBuild;
- $.ajax({
- url: 'http://tagspaces.org/releases/version.json?pVer=' + cVer,
- type: 'GET'
- })
- .done(data => {
- updateNewVersionData(data);
- })
- .fail(data => {
- console.log('AJAX failed ' + data);
- }); */
- };
-
- /**
- * places the TagSpaces window on top of the windows
- */
- focusWindow = () => {
- console.log('Focusing window is not implemented in cordova.');
- };
-
handleStartParameters = () => {
if (this.urlFromIntent !== undefined && this.urlFromIntent.length > 0) {
console.log('Intent URL: ' + this.urlFromIntent);
@@ -1058,4 +1030,11 @@ export default class CordovaIO {
window.plugins.fileOpener.open('file://' + filePath);
}
};
+
+ /**
+ * Places the application window on top of the other windows
+ */
+ focusWindow = () => {
+ console.log('Focusing window is not implemented in cordova.');
+ };
}
diff --git a/app/services/webdav-io.js b/app/services/webdav-io.js
index b873373d5..e2e1a553d 100644
--- a/app/services/webdav-io.js
+++ b/app/services/webdav-io.js
@@ -130,21 +130,6 @@ export default class WebDAVIO {
} */
};
- /**
- * Bring the TagSpaces window on top of the windows
- */
- focusWindow = (): void => {
- window.focus();
- };
-
- /**
- * Checks if new version is available
- */
- checkNewVersion = () => {
- // TODO
- console.log('Checking for new version not implemented');
- };
-
/**
* Creates recursively a tree structure for a given directory path
* @param {string} dirPath - the full path of the directory for which the tree will be generated
@@ -539,4 +524,11 @@ export default class WebDAVIO {
openFile = (filePath: string): void => {
window.open(filePath, '_blank');
};
+
+ /**
+ * Places the application window on top of the other windows
+ */
+ focusWindow = (): void => {
+ window.focus();
+ };
}