(plugin)
| 664 | } |
| 665 | |
| 666 | function getPluginKeywords(plugin) { |
| 667 | const { keywords } = plugin || {}; |
| 668 | if (!keywords) return []; |
| 669 | if (Array.isArray(keywords)) return keywords; |
| 670 | if (typeof keywords === "string") { |
| 671 | try { |
| 672 | const parsed = JSON.parse(keywords); |
| 673 | if (Array.isArray(parsed)) return parsed; |
| 674 | } catch (error) { |
| 675 | return keywords |
| 676 | .split(",") |
| 677 | .map((item) => item.trim()) |
| 678 | .filter(Boolean); |
| 679 | } |
| 680 | } |
| 681 | return []; |
| 682 | } |
| 683 | |
| 684 | function startLoading($list) { |
| 685 | $list.$title.classList.add("loading"); |
no outgoing calls
no test coverage detected