mirror of https://github.com/keeweb/keeweb.git
added a better message for the browser tab
This commit is contained in:
parent
7ccf38f0df
commit
5f1121a241
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue