TagSpaces is an offline, open source, document manager with tagging support
clear last opened location
Borislav Sapundzhiev92592c4a1354
diff --git a/data/js/fileopener.js b/data/js/fileopener.jsindex d43a22cb7..2eb45afbb 100644--- a/data/js/fileopener.js+++ b/data/js/fileopener.js@@ -185,6 +185,7 @@ define(function(require, exports, module) {_isFileOpened = false;_isEditMode = false;_isFileChanged = false;+ _openedFilePath = undefined;Mousetrap.unbind(TSCORE.Config.getEditDocumentKeyBinding());Mousetrap.unbind(TSCORE.Config.getSaveDocumentKeyBinding());Mousetrap.unbind(TSCORE.Config.getCloseViewerKeyBinding());diff --git a/data/js/postioapi.js b/data/js/postioapi.jsindex ab120380e..174673db8 100644--- a/data/js/postioapi.js+++ b/data/js/postioapi.js@@ -37,7 +37,7 @@ define(function(require, exports, module) {if (isCordova) {lastOpenedFile = lastOpenedFile.substring(("file://").length, lastOpenedFile.length);}- if (TSCORE.FileOpener.isFileOpened() && oldFilePath == lastOpenedFile) {+ if (TSCORE.FileOpener.isFileOpened() && oldFilePath === lastOpenedFile) {TSCORE.FileOpener.openFile(newFilePath);}}