Skip to content

Commit f9c2b4f

Browse files
committed
Update blockly media url to allow other deployment urls
1 parent 966987d commit f9c2b4f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.breakpoints

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"index.html": [
2020
{
2121
"id": "dea8d238-bec9-4dda-85e7-fca6b2284732",
22-
"line": 32,
23-
"version": 14702,
24-
"index": 1177
22+
"line": 1,
23+
"version": 14903,
24+
"index": 0
2525
}
2626
],
2727
"main.js": [

blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export class CustomZelosRenderer extends Blockly.zelos.Renderer {
204204
}
205205
}
206206

207-
const mediaPath = window.location.pathname.includes("/flock/")
207+
const mediaPath = window.location.pathname.includes("/flock")
208208
? "/flock/blockly/media/" // For GitHub Pages
209209
: "/blockly/media/"; // For local dev
210210

0 commit comments

Comments
 (0)