Add API for custom handling of deprecations

This commit is contained in:
Max Brunsfeld 2016-02-16 15:09:35 -08:00
parent 175449f096
commit ccef805e9b
5 changed files with 58 additions and 1 deletions

View file

@ -0,0 +1,11 @@
'use strict';
const deprecate = require('electron').deprecate;
exports.setHandler = function (deprecationHandler) {
deprecate.setHandler(deprecationHandler);
};
exports.getHandler = function () {
return deprecate.getHandler();
}