Skip to content

Commit 6283a48

Browse files
author
Matt Karl
committed
Fixed default template bug, added backgrounds for installer
1 parent f1fccbb commit 6283a48

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

installer/assets/background.png

32.6 KB
Loading

installer/assets/[email protected]

74.8 KB
Loading

src/springroll/new/TemplateManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@
162162
'Templates',
163163
config.id
164164
);
165-
165+
166166
// Check for existing
167167
if (fs.existsSync(templatePath))
168168
{
169-
var temp = this.templates[templatePath] || "0.0.1";
169+
var temp = this.templates[templatePath] || {"version" : "0.0.1"};
170170
var message = "Attempting to replace and older version of the template " + config.name + ". Continue?";
171-
171+
172172
// If the version being added is not greater than the existing one
173173
// we should ask for a confirmation first
174174
if (!semver.gt(config.version, temp.version) && !confirm(message))

0 commit comments

Comments
 (0)