Fix uses of innerHtml when we could just set element text (#1919)

This commit is contained in:
Matt Irvine
2018-07-13 15:24:24 -07:00
committed by GitHub
parent 1327120024
commit fd49c081c2
6 changed files with 10 additions and 10 deletions

View File

@@ -131,7 +131,7 @@ export class AccountDialog extends Modal {
this._noaccountViewContainer = DOM.$('div.no-account-view');
let noAccountTitle = DOM.append(this._noaccountViewContainer, DOM.$('.no-account-view-label'));
let noAccountLabel = localize('accountDialog.noAccountLabel', 'There is no linked account. Please add an account.');
noAccountTitle.innerHTML = noAccountLabel;
noAccountTitle.innerText = noAccountLabel;
// Show the add account button for the first provider
// Todo: If we have more than 1 provider, need to show all add account buttons for all providers