Skip to content

Commit

Permalink
Remove coloring output for now
Browse files Browse the repository at this point in the history
Can conflict with system settings and have problems with accessibility.
  • Loading branch information
dhh committed Sep 23, 2021
1 parent a43fb35 commit ea83097
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ export class Application implements ErrorHandler {
}

private logFormattedMessage(identifier: string, functionName: string, detail: object = {}) {
const darkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const color = darkMode ? "#ffe000" : "#5D2F85"
detail = Object.assign({ application: this }, detail)

this.logger.groupCollapsed(`%c${identifier}%c #${functionName}`, `color: ${color}`, 'color: unset')
this.logger.groupCollapsed(`${identifier} #${functionName}`)
this.logger.log("details:", { ...detail })
this.logger.groupEnd()
}
Expand Down

0 comments on commit ea83097

Please sign in to comment.