added a better message for the browser tab

This commit is contained in:
antelle 2020-03-17 20:16:44 +01:00
parent 7ccf38f0df
commit 5f1121a241
2 changed files with 6 additions and 2 deletions

View File

@ -359,6 +359,7 @@
"appRightsAlert": "Locking KeeWeb app",
"appRightsAlertBody1": "Your KeeWeb app is currently not guarded against unauthorized changes. We're asking you for permissions to make the app writable only for administrators.",
"appRightsAlertBody2": "Don't want to give permissions? You can do it yourself in Terminal",
"appBrowserAuthComplete": "Authentication is complete, you may close this page now.",
"setGenTitle": "General Settings",
"setGenUpdate": "Update",

View File

@ -1,6 +1,7 @@
import { Logger } from 'util/logger';
import { Launcher } from 'comp/launcher';
import { noop } from 'util/fn';
import { Locale } from 'util/locale';
const DefaultPort = 48149;
const logger = new Logger('storage-oauth-listener');
@ -21,8 +22,10 @@ const StorageOAuthListener = {
const http = Launcher.req('http');
const server = http.createServer((req, resp) => {
resp.writeHead(204);
resp.end();
resp.writeHead(200, 'OK', {
'Content-Type': 'text/plain; charset=UTF-8'
});
resp.end(Locale.appBrowserAuthComplete);
this.handleResult(req.url, listener);
});