Keep DingTalk QR visible in IM panel

This commit is contained in:
xmanrui 2026-08-15 12:56:33 +08:00
parent af7e6a2296
commit 4f1cc9f219
7 changed files with 51 additions and 10 deletions

View file

@ -33,6 +33,10 @@ if ((client.match(/ctx\.slots\.inject\("settings\.plugins\.tab"/g) ?? []).length
if (/role:\s*["']switch|type:\s*["']checkbox/.test(client)) {
throw new Error('client bundle contains a channel enable switch');
}
if (!client.includes('container-type: inline-size')
|| !client.includes('@container (max-width: 680px)')) {
throw new Error('client bundle does not contain the narrow-panel DingTalk QR layout');
}
if (!host.includes('@xmanrui/dsh-feishu')
|| !host.includes('@xmanrui/dsh-weixin')
|| !host.includes('@xmanrui/dsh-dingtalk')) {