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

Commit

Permalink
Fix ProjectorCefBrowser problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ARTI1208 committed Mar 22, 2022
1 parent b889868 commit 67b2cd9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public class ProjectorCefBrowser @JvmOverloads constructor(
override fun loadURL(url: String?) {
originalBrowser?.loadURL(url)

if (url == null || url == "about:blank") return
if (url.isNullOrEmpty() || url == "about:blank") return

val parsedUrl = URL(url)

Expand Down Expand Up @@ -563,6 +563,7 @@ public class ProjectorCefBrowser @JvmOverloads constructor(
public fun onLifeSpanHandlerAdded(lifeSpanHandler: CefLifeSpanHandler) {
lifeSpanHandlers += lifeSpanHandler
lifeSpanHandler.onAfterCreated(this) // html loading starts only after browser creation
client.onAfterCreated(this)
}

// Called only in headless
Expand Down

0 comments on commit 67b2cd9

Please sign in to comment.