Fix some more lint errors
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
954d49f22e
commit
752d816780
3 changed files with 8 additions and 11 deletions
|
@ -22,7 +22,7 @@ import MatrixClientPeg from '../MatrixClientPeg';
|
|||
import PlatformPeg from '../PlatformPeg';
|
||||
import { _t } from '../languageHandler';
|
||||
|
||||
import rageshake from './rageshake'
|
||||
import rageshake from './rageshake';
|
||||
|
||||
|
||||
// polyfill textencoder if necessary
|
||||
|
@ -59,8 +59,7 @@ export default async function sendBugReport(bugReportEndpoint, opts) {
|
|||
let version = "UNKNOWN";
|
||||
try {
|
||||
version = await PlatformPeg.get().getAppVersion();
|
||||
}
|
||||
catch (err) {} // PlatformPeg already logs this.
|
||||
} catch (err) {} // PlatformPeg already logs this.
|
||||
|
||||
let userAgent = "UNKNOWN";
|
||||
if (window.navigator && window.navigator.userAgent) {
|
||||
|
@ -85,7 +84,7 @@ export default async function sendBugReport(bugReportEndpoint, opts) {
|
|||
if (opts.sendLogs) {
|
||||
progressCallback(_t("Collecting logs"));
|
||||
const logs = await rageshake.getLogsForReport();
|
||||
for (let entry of logs) {
|
||||
for (const entry of logs) {
|
||||
// encode as UTF-8
|
||||
const buf = new TextEncoder().encode(entry.lines);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue