(p: Plugin, platform: string, elementName: string)
| 158 | } |
| 159 | |
| 160 | export function getPlatformElement(p: Plugin, platform: string, elementName: string): any { |
| 161 | const platformTag = getPluginPlatform(p, platform); |
| 162 | if (platformTag) { |
| 163 | const element = platformTag[elementName]; |
| 164 | if (element) { |
| 165 | return element; |
| 166 | } |
| 167 | } |
| 168 | return []; |
| 169 | } |
| 170 | |
| 171 | export function getPluginType(p: Plugin, platform: string): PluginType { |
| 172 | switch (platform) { |
no test coverage detected