Files
threshold-ui/addons/core/addon/helpers/app-name.js
T

14 lines
334 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
2021-11-05 13:20:45 -04:00
import Helper from '@ember/component/helper';
import { getOwner } from '@ember/application';
2021-11-05 13:20:45 -04:00
export default class extends Helper {
compute() {
const config = getOwner(this).resolveRegistration('config:environment');
return config.appName;
}
}