Переглянути джерело

Fixed template cache issue.

Nathaniel van Diepen 10 роки тому
батько
коміт
4186bc1bfc
1 змінених файлів з 1 додано та 1 видалено
  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);