MCPcopy Create free account
hub / github.com/react-dropzone/react-dropzone / isSecurityError

Function isSecurityError

src/utils/index.js:317–322  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

315 * @returns {boolean} True if v is a security error.
316 */
317export 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.

Callers 1

useDropzoneFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…