1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-13 13:57:25 +00:00

style(App) eliminate whitespace at the end of code lines (#5735)

This commit is contained in:
Joe Bordes
2021-05-30 20:20:17 +02:00
committed by GitHub
parent 51fd02d9b6
commit 82ec63e711
73 changed files with 134 additions and 136 deletions

View File

@@ -42,7 +42,7 @@ function Server(options) {
if(options.variables[variable]) {
this.variables[variable] = options.variables[variable];
}
}
}
}
$tw.utils.extend({},this.defaultVariables,options.variables);
// Initialise CSRF
@@ -244,7 +244,7 @@ Server.prototype.requestHandler = function(request,response,options) {
if(!this.csrfDisable && authorizationType === "writers" && request.headers["x-requested-with"] !== "TiddlyWiki") {
response.writeHead(403,"'X-Requested-With' header required to login to '" + this.servername + "'");
response.end();
return;
return;
}
// Check whether anonymous access is granted
state.allowAnon = this.isAuthorized(authorizationType,null);
@@ -253,7 +253,7 @@ Server.prototype.requestHandler = function(request,response,options) {
if(!this.authenticators[0].authenticateRequest(request,response,state)) {
// Bail if we failed (the authenticator will have sent the response)
return;
}
}
}
// Authorize with the authenticated username
if(!this.isAuthorized(authorizationType,state.authenticatedUsername)) {