Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { A } from '@ember/array';
import Component from '@ember/component';
import { computed, set, get } from '@ember/object';
import PageTitleList from 'ember-page-title/services/page-title-list';
let TitleList = PageTitleList.extend({
_removeExistingTitleTag() {
return;
}
});
export default Component.extend({
tagName: '',
titleList: computed({
get() {
return TitleList.create();
}
}),
import PageTitleList from 'ember-page-title/services/page-title-list';
import config from '../config/environment';
function capitalize(key) {
return key.charAt(0).toUpperCase() + key.slice(1);
}
let defaults = {};
['separator', 'prepend', 'replace'].forEach(function (key) {
if (config.pageTitle && config.pageTitle[key]) {
defaults[`default${capitalize(key)}`] = config.pageTitle[key];
}
});
export default PageTitleList.extend(defaults);