File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -135,9 +135,19 @@ class Compile extends Component {
135
135
const filename = detectWhitespacesAndReturnReadableResult (
136
136
this . state . name ,
137
137
) ;
138
- this . setState ( {
139
- link : `blocklyconnect-app://sketch/${ filename } /${ this . state . id } /${ this . props . selectedBoard } ` ,
140
- } ) ;
138
+
139
+
140
+ // TODO: When new connect app is released, the selected board can also be supplied with both boards
141
+ if ( this . props . selectedBoard === "esp32" ) {
142
+ this . setState ( {
143
+ link : `blocklyconnect-app://sketch/${ filename } /${ this . state . id } /${ this . props . selectedBoard } ` ,
144
+ } ) ;
145
+ }
146
+ else {
147
+ this . setState ( {
148
+ link : `blocklyconnect-app://sketch/${ filename } /${ this . state . id } ` ,
149
+ } ) ;
150
+ }
141
151
this . setState ( { appDialog : true } ) ;
142
152
} else {
143
153
if ( this . state . name ) {
You can’t perform that action at this time.
0 commit comments