void (CefBrowser browser, boolean isLoading, boolean canGoBack, boolean canGoForward) { if (ourJSCodeToInject != null) { browser.executeJavaScript(ourJSCodeToInject, getCefBrowser().getURL(), 0); browser.executeJavaScript("window.__IntelliJTools.openInBrowserCallback = link => {" + myJSQueryOpenInBrowser.inject("link") + "}", getCefBrowser().getURL(), 0); } }