Skip to content

Commit ea26c19

Browse files
authored
Merge pull request #249 from Open-STEM/kq-bugs
chore: bump version to 2.0.20 and refactor plugin path definitions in…
2 parents 76aee2d + 5c38ecd commit ea26c19

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage": "https://experientialrobotics.org/",
55
"license": "GPL-2.0-only",
66
"private": true,
7-
"version": "2.0.19",
7+
"version": "2.0.20",
88
"type": "module",
99
"scripts": {
1010
"dev": "vite",

public/CHANGELOG.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Version 2.0.19
1+
# Version 2.0.20
22

33
#### XRPCode V2 Beta What’s New
44
* Rewritten with modern web tools for more solid and expandable future

src/managers/pluginmgr.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ export default class PluginMgr {
232232
* Configure non-beta blocks for RP2350 board
233233
*/
234234
private async configNonBeta(): Promise<void> {
235+
const pluginRootUrl = 'plugins/2350/';
235236
// Add color LED block to Control Board category
236237
const toolbox = BlocklyConfigs.ToolboxJson;
237238
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -242,15 +243,15 @@ export default class PluginMgr {
242243
);
243244

244245
if (controlBoardCategory) {
245-
const colorLEDBlock = await this.loadPluginBlocks('/plugins/2350/nonbeta_blocks.json');
246+
const colorLEDBlock = await this.loadPluginBlocks(pluginRootUrl + 'nonbeta_blocks.json');
246247
controlBoardCategory.contents.push(colorLEDBlock);
247248
}
248249

249250
// Extend servo array to support 4 servos for RP2350
250251
this.extendServoArrayForRP2350();
251252

252253
// Load the supporting script (use Vite public root)
253-
await this.loadScript('/plugins/2350/nonbeta_blocks.js');
254+
await this.loadScript(pluginRootUrl + 'nonbeta_blocks.js');
254255
}
255256

256257
/**

0 commit comments

Comments
 (0)