(v)
| 315 | * @returns {boolean} True if v is a security error. |
| 316 | */ |
| 317 | export function isSecurityError(v) { |
| 318 | return ( |
| 319 | v instanceof DOMException && |
| 320 | (v.name === "SecurityError" || v.code === v.SECURITY_ERR) |
| 321 | ); |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * Check if v is a MIME type string. |
no outgoing calls
no test coverage detected
searching dependent graphs…