瀏覽代碼

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);