File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,11 @@ export default class PluginMgr {
187187 * Load plugin blocks from a JSON file
188188 */
189189 private async loadPluginBlocks ( blocksUrl : string ) : Promise < PluginBlock [ ] | null > {
190+
191+ if ( process . env . NODE_ENV === 'development' ) {
192+ blocksUrl = '/public' + blocksUrl ;
193+ }
194+
190195 try {
191196 const response = await fetch ( blocksUrl ) ;
192197 if ( ! response . ok ) {
@@ -238,7 +243,7 @@ export default class PluginMgr {
238243 ) ;
239244
240245 if ( controlBoardCategory ) {
241- const colorLEDBlock = await this . loadPluginBlocks ( '/public/ plugins/2350/nonbeta_blocks.json' ) ;
246+ const colorLEDBlock = await this . loadPluginBlocks ( '/plugins/2350/nonbeta_blocks.json' ) ;
242247 controlBoardCategory . contents . push ( colorLEDBlock ) ;
243248 }
244249
You can’t perform that action at this time.
0 commit comments