(URL, source)
| 1253 | } |
| 1254 | |
| 1255 | const getLabel = (URL, source) => { |
| 1256 | if (URL && typeof URL === 'object') { |
| 1257 | if (URL.pathname && typeof URL.pathname === 'string') { |
| 1258 | if (URL.pathname.substring(0, 15) === '/') { |
| 1259 | return URL.host || '' |
| 1260 | } else { |
| 1261 | return `${URL.pathname.substring(0, 15)}...` |
| 1262 | } |
| 1263 | } else if (URL.host) { |
| 1264 | return URL.host |
| 1265 | } |
| 1266 | } |
| 1267 | |
| 1268 | if (source && source.pageContent && typeof source.pageContent === 'string') { |
| 1269 | return `${source.pageContent.substring(0, 15)}...` |
| 1270 | } |
| 1271 | |
| 1272 | return '' |
| 1273 | } |
| 1274 | |
| 1275 | const getFileUploadAllowedTypes = () => { |
| 1276 | if (fullFileUpload) { |
no outgoing calls
no test coverage detected