diff --git a/docs/UPLOAD.md b/docs/UPLOAD.md index 97246c039a..90059e2266 100644 --- a/docs/UPLOAD.md +++ b/docs/UPLOAD.md @@ -49,4 +49,6 @@ cp -X ~/Downloads/pico-os.uf2 /Volumes/RPI-RP2 Open up your game in the editor, click the "Run on Device" button in the top right, and select the Sprig from the menu (again, like a USB device.) +*Note: Make sure you're using a Chromium-based browser such as Edge or Chrome. On Linux you will also need to add your user to the `dialout` group* + That's it! You're done :) diff --git a/src/components/codemirror.tsx b/src/components/codemirror.tsx index fb35db80d5..0494456423 100644 --- a/src/components/codemirror.tsx +++ b/src/components/codemirror.tsx @@ -44,6 +44,7 @@ export default function CodeMirror(props: CodeMirrorProps) { }); }; + useEffect(() => { if (!parent.current) throw new Error('Oh golly! The editor parent ref is null') @@ -62,7 +63,7 @@ export default function CodeMirror(props: CodeMirrorProps) { useEffect(() => { setEditorTheme(); - }, [isDark.value]); + }, [isDark.value, editorRef]); return ( diff --git a/src/components/navbar-editor.tsx b/src/components/navbar-editor.tsx index de4eb8ddbd..ca44296d96 100644 --- a/src/components/navbar-editor.tsx +++ b/src/components/navbar-editor.tsx @@ -80,7 +80,7 @@ export default function EditorNavbar(props: EditorNavbarProps) { saveState = props.persistenceState.value.stale ? 'Your changes are unsaved!' : 'No changes to save' - + actionButton = - */} +