Skip to content

Commit 53b75a9

Browse files
authored
fix!: update default media location (#9870)
* fix!: update default media location * chore: update docs
1 parent 463f95e commit 53b75a9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/blockly/core/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class Options {
138138
if (hasCss === undefined) {
139139
hasCss = true;
140140
}
141-
let pathToMedia = 'https://blockly-demo.appspot.com/static/media/';
141+
let pathToMedia = 'https://static.blockly.com/media/';
142142
if (options['media']) {
143143
pathToMedia = options['media'].endsWith('/')
144144
? options['media']

packages/docs/docs/guides/configure/web/configuration_struct.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ default value based on whether the provided toolbox has categories or not.
5151
| `maxBlocks` | number | Maximum number of blocks that may be created. Useful for student exercises. Defaults to `Infinity`. |
5252
| `maxInstances` | object | Map from block types to maximum number of blocks of that type that may be created. Undeclared types default to `Infinity`.Example: `maxInstances\: {'controls_if'\: 3, 'math_number'\: 42}` |
5353
| `maxTrashcanContents` | number | Maximum number of deleted items that will appear in the trashcan flyout. `'0'` disables the feature. Defaults to `'32'`. |
54-
| `media` | string | Path from page (or frame) to the Blockly media directory. Defaults to `'https\://blockly-demo.appspot.com/static/media/'`. See [Media folder][media]. |
54+
| `media` | string | Path from page (or frame) to the Blockly media directory. Defaults to `'https\://static.blockly.com/media/'`. See [Media folder][media]. |
5555
| `modalInputs` | boolean | If `true` show modal editors for text input fields and their subclasses when on mobile devices, and an inline editor on desktop. If `false` show an inline editor on both desktop and mobile. Defaults to `true`. |
5656
| `move` | object | Configures behavior for how users can move around the workspace. See [Move]. |
5757
| `oneBasedIndex` | boolean | If `true` list and string operations should index from `1`, if `false` index from `0`. Defaults to `true`. |

packages/docs/docs/guides/configure/web/media.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ image: images/blockly_banner.png
88

99
The media folder is where Blockly looks for assets like sounds (e.g. the delete
1010
sound effect) and images (e.g. the trash can). By default, these assets are
11-
downloaded from `https://blockly-demo.appspot.com/static/media/`.
11+
downloaded from `https://static.blockly.com/media/`.
1212

1313
If you want to customize any of these assets, such as using a different sound,
1414
or if you want your application to only make HTTP requests to your domain:

0 commit comments

Comments
 (0)