mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 03:03:24 +08:00
Keep DingTalk QR visible in IM panel
This commit is contained in:
parent
af7e6a2296
commit
4f1cc9f219
7 changed files with 51 additions and 10 deletions
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue