(type)
| 235 | } |
| 236 | |
| 237 | export function getChannelModels(type) { |
| 238 | if (channelModels !== undefined && type in channelModels) { |
| 239 | if (!channelModels[type]) { |
| 240 | return []; |
| 241 | } |
| 242 | return channelModels[type]; |
| 243 | } |
| 244 | let models = localStorage.getItem('channel_models'); |
| 245 | if (!models) { |
| 246 | return []; |
| 247 | } |
| 248 | channelModels = JSON.parse(models); |
| 249 | if (type in channelModels) { |
| 250 | return channelModels[type]; |
| 251 | } |
| 252 | return []; |
| 253 | } |
no outgoing calls
no test coverage detected