Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/blockly/core/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class Options {
if (hasCss === undefined) {
hasCss = true;
}
let pathToMedia = 'https://blockly-demo.appspot.com/static/media/';
let pathToMedia = 'https://static.blockly.com/media/';
if (options['media']) {
pathToMedia = options['media'].endsWith('/')
? options['media']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ default value based on whether the provided toolbox has categories or not.
| `maxBlocks` | number | Maximum number of blocks that may be created. Useful for student exercises. Defaults to `Infinity`. |
| `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}` |
| `maxTrashcanContents` | number | Maximum number of deleted items that will appear in the trashcan flyout. `'0'` disables the feature. Defaults to `'32'`. |
| `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]. |
| `media` | string | Path from page (or frame) to the Blockly media directory. Defaults to `'https\://static.blockly.com/media/'`. See [Media folder][media]. |
| `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`. |
| `move` | object | Configures behavior for how users can move around the workspace. See [Move]. |
| `oneBasedIndex` | boolean | If `true` list and string operations should index from `1`, if `false` index from `0`. Defaults to `true`. |
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/docs/guides/configure/web/media.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image: images/blockly_banner.png

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

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