(metaProperty: string)
| 162 | } |
| 163 | |
| 164 | export function getMetaContentByProperty(metaProperty: string) { |
| 165 | const metas = document.getElementsByTagName("meta") |
| 166 | |
| 167 | for (let i = 0; i < metas.length; i++) { |
| 168 | if (metas[i].getAttribute("property") === metaProperty) { |
| 169 | return metas[i].getAttribute("content") |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | return "" |
| 174 | } |
| 175 | |
| 176 | export function isValidUrl(urlString: string) { |
| 177 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected