File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,11 @@ Menubar.File = function ( editor ) {
86
86
}
87
87
88
88
var output = geometry . toJSON ( ) ;
89
+
89
90
try {
90
91
output = JSON . stringify ( output , null , '\t' ) ;
91
92
output = output . replace ( / [ \n \t ] + ( [ \d \. e \- \[ \] ] + ) / g, '$1' ) ;
92
- } catch ( oops ) {
93
+ } catch ( e ) {
93
94
output = JSON . stringify ( output ) ;
94
95
}
95
96
@@ -115,10 +116,11 @@ Menubar.File = function ( editor ) {
115
116
}
116
117
117
118
var output = object . toJSON ( ) ;
119
+
118
120
try {
119
121
output = JSON . stringify ( output , null , '\t' ) ;
120
122
output = output . replace ( / [ \n \t ] + ( [ \d \. e \- \[ \] ] + ) / g, '$1' ) ;
121
- } catch ( oops ) {
123
+ } catch ( e ) {
122
124
output = JSON . stringify ( output ) ;
123
125
}
124
126
@@ -135,10 +137,11 @@ Menubar.File = function ( editor ) {
135
137
option . onClick ( function ( ) {
136
138
137
139
var output = editor . scene . toJSON ( ) ;
140
+
138
141
try {
139
142
output = JSON . stringify ( output , null , '\t' ) ;
140
143
output = output . replace ( / [ \n \t ] + ( [ \d \. e \- \[ \] ] + ) / g, '$1' ) ;
141
- } catch ( oops ) {
144
+ } catch ( e ) {
142
145
output = JSON . stringify ( output ) ;
143
146
}
144
147
You can’t perform that action at this time.
0 commit comments