Parcourir la source

Fixed template cache issue.

Nathaniel van Diepen il y a 10 ans
Parent
commit
4186bc1bfc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      js/index.js

+ 1 - 1
js/index.js

@@ -71,7 +71,7 @@
 						name: name,
 						template: template,
 						type: type,
-						hash: templates[id].hash
+						hash: typeof hash == 'undefined'?'':hash
 					}
 					if(id===false){
 						console.log('Storing new template for '+type+':'+name);