mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 12:00:12 +08:00
linting
This commit is contained in:
@@ -135,9 +135,13 @@ class PluginsService {
|
||||
.filter(o => o.module.slots && o.module.slots[slot])
|
||||
.map(o => o.module.slots[slot])
|
||||
);
|
||||
|
||||
|
||||
if (slotSize > 0 && slots.length > slotSize) {
|
||||
console.warn(`Slot[${slot}] supports a maximum of ${slotSize} plugins providing slots, got ${slots.length}, will only use the first ${slotSize}`);
|
||||
console.warn(
|
||||
`Slot[${slot}] supports a maximum of ${slotSize} plugins providing slots, got ${
|
||||
slots.length
|
||||
}, will only use the first ${slotSize}`
|
||||
);
|
||||
}
|
||||
|
||||
return (slotSize > 0 ? slots.slice(0, slotSize) : slots)
|
||||
|
||||
Reference in New Issue
Block a user