Explorar o código

Fixed template cache issue.

Nathaniel van Diepen %!s(int64=10) %!d(string=hai) anos
pai
achega
4186bc1bfc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);