Fix mac issue after electron test migration PR (#4842)

Fix mac issue after electron test migration pR
This commit is contained in:
Pierre Jacquier
2024-12-19 16:27:00 -05:00
committed by GitHub
parent d535a2862d
commit 872b196a86

View File

@ -125,7 +125,9 @@ export const fileLoader: LoaderFunction = async (
// If persistCode in localStorage is present, it'll persist that code
// through *anything*. INTENDED FOR TESTS.
code = codeManager.localStoragePersistCode() || code
if (window.electron.process.env.IS_PLAYWRIGHT) {
code = codeManager.localStoragePersistCode() || code
}
// Update both the state and the editor's code.
// We explicitly do not write to the file here since we are loading from