Add API for custom handling of deprecations
This commit is contained in:
parent
175449f096
commit
ccef805e9b
5 changed files with 58 additions and 1 deletions
11
atom/common/api/lib/deprecations.js
Normal file
11
atom/common/api/lib/deprecations.js
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue