STEMMechanics / NAO-Cadet

🤖 Blockly based coding platform for Aldebaran NAO robots
GNU General Public License v3.0
1 stars 0 forks source link

JavaScript error when selecting a language #7

Closed nomadjimbob closed 4 years ago

nomadjimbob commented 4 years ago

Summary When selecting a language on v1.0.1 you receive a JavaScript error. Occurs with any language selected.

Steps to reproduce Load the application and select any language on the language select screen, including English.

What is the current bug behavior? The referenced language file is not found due to typecase issues and the script it halted

What is the expected correct behavior? The correct file is loaded and the browser is redirected to cadet.html

Relevant logs and/or screenshots Failed to load resource: the server responded with a status of 404 (File Not Found: /blockly/msg/js/IT.js?_=1575915091828)

Possible fixes The reference language file exists, however it is lowercase. JavaScript should ensure that the referenced file string is lowercased before requesting the file.