Get GPU information in issue reporter, #46960

This commit is contained in:
Rachel Macfarlane
2018-04-02 16:12:14 -07:00
parent 3bc2728340
commit 691c789ce3
4 changed files with 52 additions and 4 deletions

View File

@@ -142,7 +142,11 @@ ${this.getInfos()}
`;
Object.keys(this._data.systemInfo).forEach(k => {
md += `|${k}|${this._data.systemInfo[k]}|\n`;
const data = typeof this._data.systemInfo[k] === 'object'
? Object.keys(this._data.systemInfo[k]).map(key => `${key}: ${this._data.systemInfo[k][key]}`).join('<br>')
: this._data.systemInfo[k];
md += `|${k}|${data}|\n`;
});
md += '\n</details>';