Merge pull request #196 from sensebox/update-code-editor
bug fix: translations do not load on /codeeditor
This commit is contained in:
		
						commit
						b40a439e16
					
				| @ -175,8 +175,7 @@ void loop() { | |||||||
|             defaultValue={ |             defaultValue={ | ||||||
|               localStorage.getItem("ArduinoCode") |               localStorage.getItem("ArduinoCode") | ||||||
|                 ? localStorage.getItem("ArduinoCode") |                 ? localStorage.getItem("ArduinoCode") | ||||||
|                 : ` |                 : `#include <senseBoxIO.h> //needs to be always included
 | ||||||
| #include <senseBoxIO.h> //needs to be always included
 |  | ||||||
|        |        | ||||||
| void setup () { | void setup () { | ||||||
|                                |                                | ||||||
| @ -189,6 +188,7 @@ void loop() { | |||||||
|             value={fileContent} |             value={fileContent} | ||||||
|             onMount={(editor, monaco) => { |             onMount={(editor, monaco) => { | ||||||
|               editorRef.current = editor; |               editorRef.current = editor; | ||||||
|  |               saveValue(); | ||||||
|             }} |             }} | ||||||
|           /> |           /> | ||||||
|         </Grid> |         </Grid> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user