We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f077639 commit 2d6fa4cCopy full SHA for 2d6fa4c
1 file changed
src/livecodes/core.ts
@@ -1969,11 +1969,12 @@ const loadSelectedScreen = () => {
1969
return false;
1970
};
1971
1972
-const getAllEditors = (): CodeEditor[] => [
1973
- ...Object.values(editors),
1974
- ...[toolsPane?.console?.getEditor?.()],
1975
- ...[toolsPane?.compiled?.getEditor?.()],
1976
-];
+const getAllEditors = (): CodeEditor[] =>
+ [
+ ...Object.values(editors),
+ toolsPane?.console?.getEditor?.(),
+ toolsPane?.compiled?.getEditor?.(),
1977
+ ].filter((x) => x != null);
1978
1979
const setTheme = (theme: Theme, editorTheme: Config['editorTheme']) => {
1980
const themes = ['light', 'dark'];
0 commit comments