Skip to content

Commit

Permalink
show jcef workaround message
Browse files Browse the repository at this point in the history
  • Loading branch information
shalom938 committed Feb 17, 2025
1 parent b33e48e commit 18c1d6a
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ import javax.swing.JPanel

fun is2025EAPWithJCEFRemoteEnabled(): Boolean {

//just touch it so it will initialize static variables
val isJcefSupported = JBCefApp.isSupported()
println("isJCEFSupported = $isJcefSupported") // do something with the variable so that the compiler, will not optimize and remove this code
return if (ApplicationInfo.getInstance().build.baselineVersion == 251){
//just touch it so it will initialize static variables
val isJcefSupported = JBCefApp.isSupported()
println("isJCEFSupported = $isJcefSupported") // do something with the variable so that the compiler, will not optimize and remove this code

//this is the return value
java.lang.Boolean.getBoolean("jcef.remote.enabled")

return if (ApplicationInfo.getInstance().build.baselineVersion == 251 &&
java.lang.Boolean.getBoolean("jcef.remote.enabled")) {
true
} else {
false
}
Expand Down

0 comments on commit 18c1d6a

Please sign in to comment.