🎨 Support set Chromium command line arguments on the desktop https://github.com/siyuan-note/siyuan/issues/9696

This commit is contained in:
Daniel 2023-11-20 10:54:06 +08:00
parent 5a727078be
commit 1399757e76
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -605,7 +605,7 @@ if (!app.isPackaged) {
argStart = 2
}
for (let i = argStart; i < process.argv.length; i++) {
if (process.argv[i].startsWith("--workspace=") || process.argv[i].startsWith("--port=")) {
if (process.argv[i].startsWith("--workspace=") || process.argv[i].startsWith("--port=") || process.argv[i].startsWith("siyuan://")) {
// 跳过内置参数
continue
}