Merge pull request #10929 from vector-im/t3chguy/don't_log_query_params

Don't log query parameters as they may contain secrets
This commit is contained in:
Michael Telatynski 2019-09-22 16:51:42 +01:00 committed by GitHub
commit 0c187b4459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -334,7 +334,8 @@ async function loadApp() {
const acceptInvalidBrowser = window.localStorage && window.localStorage.getItem('mx_accepts_unsupported_browser');
console.log("Vector starting at "+window.location);
const urlWithoutQuery = window.location.protocol + '//' + window.location.host + window.location.pathname;
console.log("Vector starting at " + urlWithoutQuery);
if (configError) {
window.matrixChat = ReactDOM.render(<div className="error">
Unable to load config file: please refresh the page to try again.