Commit ddb815a
authored
fix: resolve initialization crashes and loading screen issues (#5642)
* fix: resolve initialization crashes and loading screen issues
- Restore missing createArtwork method in turtles.js that was causing
TypeError during turtle initialization
- Add guard clause in doSearch to prevent crash when searchWidget is
undefined
- Add robust null checks in showContents to prevent crashes on missing
DOM elements and ensure loading screen is properly hidden
- Add RequireJS shim for constraints.js to depend on interface.js,
fixing 'JSInterface is not defined' ReferenceError
- Add safe fallback for DEFAULTVOLUME in turtle-singer.js to handle
module loading order issues
These fixes address race conditions and missing methods that were
preventing the application from fully loading and causing the
'Combining math and music...' loading screen to persist.
* style: format files with prettier
* fix(playback): resolve turtle cache infinite loop and missing bpm constant
* style: fix formatting in js files1 parent f979aa7 commit ddb815a
File tree
5 files changed
+299
-227
lines changed- js
5 files changed
+299
-227
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2871 | 2871 | | |
2872 | 2872 | | |
2873 | 2873 | | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
2874 | 2880 | | |
2875 | 2881 | | |
2876 | 2882 | | |
| |||
3057 | 3063 | | |
3058 | 3064 | | |
3059 | 3065 | | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
3060 | 3072 | | |
3061 | 3073 | | |
3062 | 3074 | | |
| |||
5186 | 5198 | | |
5187 | 5199 | | |
5188 | 5200 | | |
5189 | | - | |
5190 | | - | |
5191 | | - | |
5192 | | - | |
| 5201 | + | |
| 5202 | + | |
| 5203 | + | |
| 5204 | + | |
| 5205 | + | |
| 5206 | + | |
| 5207 | + | |
| 5208 | + | |
| 5209 | + | |
| 5210 | + | |
| 5211 | + | |
| 5212 | + | |
| 5213 | + | |
| 5214 | + | |
| 5215 | + | |
| 5216 | + | |
5193 | 5217 | | |
5194 | | - | |
5195 | | - | |
5196 | | - | |
| 5218 | + | |
| 5219 | + | |
| 5220 | + | |
| 5221 | + | |
| 5222 | + | |
| 5223 | + | |
| 5224 | + | |
| 5225 | + | |
| 5226 | + | |
5197 | 5227 | | |
5198 | 5228 | | |
5199 | 5229 | | |
| |||
0 commit comments