Files
threshold-ui/addons/core/addon/initializers/deprecations.js
T

19 lines
359 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
2021-10-26 09:02:33 -04:00
import { registerDeprecationHandler } from '@ember/debug';
2022-11-15 19:36:30 -08:00
export function initialize() {
registerDeprecationHandler((message, options, next) => {
if (options?.url) {
message += options.url;
}
next(message, options);
});
2021-10-26 09:02:33 -04:00
}
export default {
initialize,
};