use new cacheDefaultProject method in constructor
This commit is contained in:
1 parent
72616cdabf
commit
12ffd72ff3
1 file changed
+1
-7
+1
-7
@@ -9,13 +9,7 @@ import defaultProject from './default-project';
|
||||
class Storage extends ScratchStorage {
|
||||
constructor () {
|
||||
super();
|
||||
const defaultProjectAssets = defaultProject(this.translator);
|
||||
defaultProjectAssets.forEach(asset => this.cache(
|
||||
this.AssetType[asset.assetType],
|
||||
this.DataFormat[asset.dataFormat],
|
||||
asset.data,
|
||||
asset.id
|
||||
));
|
||||
this.cacheDefaultProject();
|
||||
this.addWebStore(
|
||||
[this.AssetType.Project],
|
||||
this.getProjectGetConfig.bind(this),
|
||||
|
||||
Reference in new issue
Block a user