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 4157dd0 commit b33e48e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.digma.intellij.plugin.ui.common

import com.intellij.openapi.application.ApplicationInfo
import com.intellij.openapi.project.Project
import com.intellij.ui.jcef.JBCefApp
import com.intellij.util.ui.JBUI.Borders.empty
import org.digma.intellij.plugin.common.findActiveProject
import org.digma.intellij.plugin.posthog.ActivityMonitor
Expand All @@ -15,6 +16,10 @@ 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 &&
java.lang.Boolean.getBoolean("jcef.remote.enabled")) {
true
Expand Down

0 comments on commit b33e48e

Please sign in to comment.