|
|
|
@ -4,6 +4,7 @@ import com.fr.design.DesignerEnvManager;
|
|
|
|
|
import com.fr.design.ui.ModernUIConstants; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.stable.CommonUtils; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.value.ClearableLazyValue; |
|
|
|
|
import com.fr.web.struct.AssembleComponent; |
|
|
|
|
import com.teamdev.jxbrowser.engine.ChromiumBinariesExtractionException; |
|
|
|
@ -55,8 +56,10 @@ public class JxEngine {
|
|
|
|
|
.addScheme(Scheme.of(ModernUIConstants.EMB_TAG), |
|
|
|
|
new NxInterceptRequestCallback(this::getComponent, this::getParameterMap)); |
|
|
|
|
String options = System.getProperty("jxbrowser.chrome.setup.options"); |
|
|
|
|
for (String s : options.split(SPLIT)) { |
|
|
|
|
builder.addSwitch(s); |
|
|
|
|
if (StringUtils.isNotEmpty(options)) { |
|
|
|
|
for (String s : options.split(";")) { |
|
|
|
|
builder.addSwitch(s); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (disableWebSecurity) { |
|
|
|
|
builder.addSwitch("--disable-web-security"); |
|
|
|
|