mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 13:10:09 +02:00
remove node_modules
This commit is contained in:
27
app/node_modules/currently-unhandled/browser.js
generated
vendored
27
app/node_modules/currently-unhandled/browser.js
generated
vendored
@@ -1,27 +0,0 @@
|
||||
'use strict';
|
||||
var core = require('./core');
|
||||
|
||||
function unwrapEvent(event) {
|
||||
if (event && event.detail && event.detail.promise) {
|
||||
return event.detail;
|
||||
}
|
||||
|
||||
return event;
|
||||
}
|
||||
|
||||
module.exports = function (w) {
|
||||
w = w || window;
|
||||
var c = core();
|
||||
|
||||
w.addEventListener('unhandledrejection', function (event) {
|
||||
event = unwrapEvent(event);
|
||||
c.onUnhandledRejection(event.reason, event.promise);
|
||||
});
|
||||
|
||||
w.addEventListener('rejectionhandled', function (event) {
|
||||
event = unwrapEvent(event);
|
||||
c.onRejectionHandled(event.promise);
|
||||
});
|
||||
|
||||
return c.currentlyUnhandled;
|
||||
};
|
Reference in New Issue
Block a user