From a6e0c4c16fab8708f41eb6859c439f19813f633f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zheng-=E9=83=91=E6=BD=87?= Date: Thu, 10 Apr 2025 19:45:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=90=E4=BE=9B=E5=86=85=E5=B5=8C?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E5=90=AF=E5=8A=A8=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=B9=E6=A1=88=20#REPORT-125730?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/design/jxbrowser/JxEngine.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/designer-base/src/main/java/com/fr/design/jxbrowser/JxEngine.java b/designer-base/src/main/java/com/fr/design/jxbrowser/JxEngine.java index dbe6c6fb2d..1732b6989c 100644 --- a/designer-base/src/main/java/com/fr/design/jxbrowser/JxEngine.java +++ b/designer-base/src/main/java/com/fr/design/jxbrowser/JxEngine.java @@ -53,6 +53,10 @@ public class JxEngine { .addSwitch("--disable-google-traffic") .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(";")) { + builder.addSwitch(s); + } if (disableWebSecurity) { builder.addSwitch("--disable-web-security"); }