Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit 3215e31

Browse files
committed
Fix ProjectorCefBrowser problems
1 parent 478144b commit 3215e31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projector-ij-common/src/main/kotlin/org/jetbrains/projector/ij/jcef/ProjectorCefBrowser.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public class ProjectorCefBrowser @JvmOverloads constructor(
285285
override fun loadURL(url: String?) {
286286
originalBrowser?.loadURL(url)
287287

288-
if (url == null || url == "about:blank") return
288+
if (url.isNullOrEmpty() || url == "about:blank") return
289289

290290
val parsedUrl = URL(url)
291291

@@ -563,6 +563,7 @@ public class ProjectorCefBrowser @JvmOverloads constructor(
563563
public fun onLifeSpanHandlerAdded(lifeSpanHandler: CefLifeSpanHandler) {
564564
lifeSpanHandlers += lifeSpanHandler
565565
lifeSpanHandler.onAfterCreated(this) // html loading starts only after browser creation
566+
client.onAfterCreated(this)
566567
}
567568

568569
// Called only in headless

0 commit comments

Comments
 (0)