Download node_modules/jquery/src/deferred/exceptionHook.js from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 830 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/jquery/src/deferred/exceptionHook.js
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/node_modules/jquery/src/deferred/exceptionHook.js
-
curl -L -o exceptionHook.js https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/jquery/src/deferred/exceptionHook.js
830 Bytes
| define( [ | |
| "../core", | |
| "../deferred" | |
| ], function( jQuery ) { | |
| ; | |
| // These usually indicate a programmer mistake during development, | |
| // warn about them ASAP rather than swallowing them by default. | |
| var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; | |
| // If `jQuery.Deferred.getErrorHook` is defined, `asyncError` is an error | |
| // captured before the async barrier to get the original error cause | |
| // which may otherwise be hidden. | |
| jQuery.Deferred.exceptionHook = function( error, asyncError ) { | |
| // Support: IE 8 - 9 only | |
| // Console exists when dev tools are open, which can happen at any time | |
| if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { | |
| window.console.warn( "jQuery.Deferred exception: " + error.message, | |
| error.stack, asyncError ); | |
| } | |
| }; | |
| } ); | |