fibjs/fibjs

建议在 gui.config() 和 gui.open() 中支持添加任意 Cef 命令行参数

gmxyb opened this issue · 0 comments

gmxyb commented

例如:

{
    "cache_path": "...", 
    "cef_path": "....", 

    "cef_cmdline_args" : [   //  自定义 Cef 命令行参数列表
       "--force-device-scale-factor=1",
       "--force-gpu-mem-available-mb=1024m",
       "--allow-file-access-from-files=1",
       "--allow-running-insecure-content=1",
       ....
   ]
}

cef_cmdline_args 优先级更高,可以覆盖掉 cache_path、proxy 等设置。