浏览代码

Editor: Define LocalStorage key in Config.

Mr.doob 7 年之前
父节点
当前提交
cc293def63
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 3 1
      editor/js/Config.js
  2. 1 1
      editor/js/Editor.js

+ 3 - 1
editor/js/Config.js

@@ -2,7 +2,9 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-var Config = function ( name ) {
+var Config = function () {
+
+	var name = 'threejs-editor';
 
 	var storage = {
 		'autosave': true,

+ 1 - 1
editor/js/Editor.js

@@ -72,7 +72,7 @@ var Editor = function () {
 
 	};
 
-	this.config = new Config( 'threejs-editor' );
+	this.config = new Config();
 	this.history = new History( this );
 	this.storage = new Storage();
 	this.loader = new Loader( this );