Files
threshold-ui/addons/core/addon/helpers/app-name.js
T
2024-05-31 11:29:24 -07:00

15 lines
335 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import Helper from '@ember/component/helper';
import { getOwner } from '@ember/application';
export default class extends Helper {
compute() {
const config = getOwner(this).resolveRegistration('config:environment');
return config.appName;
}
}