Skip to content

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

fix: logout web

Ilian Sapundshiev047d137b6555
diff --git a/app/components/WelcomePanel.tsx b/app/components/WelcomePanel.tsx
index 58f6b95bc..b3e1b4b94 100644
--- a/app/components/WelcomePanel.tsx
+++ b/app/components/WelcomePanel.tsx
@@ -211,7 +211,11 @@ const WelcomePanel = (props: Props) => {
// @ts-ignore
const newHref = window.location.href.replace(
'http://',
- 'http://' + new Date().getTime() + '@'
+ 'http://' +
+ new Date().getTime() +
+ ':' +
+ new Date().getTime() +
+ '@'
);
// @ts-ignore
window.location.href = newHref;
diff --git a/app/services/cordova-io.ts b/app/services/cordova-io.ts
index 46b343d34..521672a2e 100644
--- a/app/services/cordova-io.ts
+++ b/app/services/cordova-io.ts
@@ -1234,7 +1234,10 @@ export default class CordovaIO {
// Array with paths
// ["file:///storage/emulated/0/360/security", "file:///storage/emulated/0/360/security"]
// fix https://trello.com/c/vV7D0kGf/500-tsn500-fix-folder-selector-in-create-edit-location-on-android-or-use-native-dialog
- data[0] = data[0].replace('file:///storage/emulated/0', 'file:///sdcard');
+ data[0] = data[0].replace(
+ 'file:///storage/emulated/0',
+ 'file:///sdcard'
+ );
resolve(data);
},
error: function(err) {