Safer checkUrl

This commit is contained in:
Robin Ward 2016-12-12 13:11:00 -05:00
parent b6e03116ba
commit 7b2e4170e9

View File

@ -51,6 +51,8 @@ export default Ember.Component.extend({
},
_checkForUrl() {
if (!this.element || this.isDestroying || this.isDestroyed) { return; }
if (this.get('isAbsoluteUrl') && (this.get('composer.reply')||"").length === 0) {
// Try to onebox. If success, update post body and title.