Skip to content

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

clear last opened location (cherry picked from commit 92592c4)

Borislav Sapundzhiev1392625abac3
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index 2aed60565..12b98665c 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -184,6 +184,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.js
index 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);
}
}