mirror of
https://github.com/documize/community.git
synced 2025-08-08 06:55:28 +02:00
Use get method to prevent exeptions when properties are missing
This commit is contained in:
parent
38062eeb82
commit
e7843e17b9
1 changed files with 4 additions and 4 deletions
|
@ -19,15 +19,15 @@ export default Ember.Service.extend({
|
|||
},
|
||||
|
||||
setTitle(title) {
|
||||
document.title = title + " | " + this.get('sessionService').appMeta.title;
|
||||
document.title = title + " | " + this.get('sessionService.appMeta.title');
|
||||
},
|
||||
|
||||
setTitleReverse(title) {
|
||||
document.title = this.get('sessionService').appMeta.title + " | " + title;
|
||||
document.title = this.get('sessionService.appMeta.title') + " | " + title;
|
||||
},
|
||||
|
||||
setTitleAsPhrase(title) {
|
||||
document.title = this.get('sessionService').appMeta.title + " " + title;
|
||||
document.title = this.get('sessionService.appMeta.title') + " " + title;
|
||||
},
|
||||
|
||||
setTitleWithoutSuffix(title) {
|
||||
|
@ -38,7 +38,7 @@ export default Ember.Service.extend({
|
|||
$('meta[name=description]').remove();
|
||||
|
||||
if (is.null(description) || is.undefined(description)) {
|
||||
description = this.get('sessionService').appMeta.message;
|
||||
description = this.get('sessionService.appMeta.message');
|
||||
}
|
||||
|
||||
$('head').append('<meta name="description" content="' + description + '">');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue