File tree Expand file tree Collapse file tree
src/wasmJsMain/kotlin/io/github/oshai/kotlinlogging Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package io.github.oshai.kotlinlogging
22
3- private fun startupMessageDisabledInWindow () : Boolean =
3+ private val startupMessageDisabledInWindow: Boolean =
44 js(" typeof window !== 'undefined' && (window.KOTLIN_LOGGING_STARTUP_MESSAGE === 'false' || window.KOTLIN_LOGGING_STARTUP_MESSAGE === false)" ) as Boolean
55
6- private fun startupMessageDisabledInEnv () : Boolean =
6+ private val startupMessageDisabledInEnv: Boolean =
77 js(" typeof process !== 'undefined' && process.env && (process.env.KOTLIN_LOGGING_STARTUP_MESSAGE === 'false' || process.env.KOTLIN_LOGGING_STARTUP_MESSAGE === false)" ) as Boolean
88
99private fun resolveStartupMessageDefault (): Boolean {
1010 try {
11- if (startupMessageDisabledInWindow() ) {
11+ if (startupMessageDisabledInWindow) {
1212 return false
1313 }
14- if (startupMessageDisabledInEnv() ) {
14+ if (startupMessageDisabledInEnv) {
1515 return false
1616 }
1717 return true
You can’t perform that action at this time.
0 commit comments