diff options
author | Valerio Virgillito | 2012-05-16 11:42:09 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-16 11:42:09 -0700 |
commit | 23bf5db97fb24afdb14d02faac1136fc04137e96 (patch) | |
tree | b0d2bb48506cda93e0db62d3e77c4ca9fc7306cf /js/document/models | |
parent | 081d72d145f3b570f0f866802e015527848f690e (diff) | |
parent | 78250b70bdf0089e2b8ac56fb77e2f76ab83f34c (diff) | |
download | ninja-23bf5db97fb24afdb14d02faac1136fc04137e96.tar.gz |
Merge pull request #238 from joseeight/Document
Fixing Chrome Preview
Diffstat (limited to 'js/document/models')
-rwxr-xr-x | js/document/models/base.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/document/models/base.js b/js/document/models/base.js index f9844b70..033e16f6 100755 --- a/js/document/models/base.js +++ b/js/document/models/base.js | |||
@@ -93,7 +93,7 @@ exports.BaseDocumentModel = Montage.create(Component, { | |||
93 | //Currently only supporting current browser (Chrome, obviously) | 93 | //Currently only supporting current browser (Chrome, obviously) |
94 | switch (this.browser) { | 94 | switch (this.browser) { |
95 | case 'chrome': | 95 | case 'chrome': |
96 | if (this.template.type === 'banner' || this.template.type === 'animation') { | 96 | if (this.template && (this.template.type === 'banner' || this.template.type === 'animation')) { |
97 | window.open('/js/document/templates/preview/banner.html?width='+this.template.size.width+'&height='+this.template.size.height+'&url='+this.url); | 97 | window.open('/js/document/templates/preview/banner.html?width='+this.template.size.width+'&height='+this.template.size.height+'&url='+this.url); |
98 | } else { | 98 | } else { |
99 | window.open(this.url); | 99 | window.open(this.url); |