Skip to content

Commit d897409

Browse files
committed
fix: integ tests starts running in dev mode
1 parent 18e5a3f commit d897409

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
// this means that we are loaded in an iframe in the specrunner. Electron doesnt expose APIs
174174
// in its iframes, so we directly use the top most windows electron api objects for tests to run properly.
175175
console.warn("Phoenix is loaded in iframe, attempting to use electron APIs from window.top");
176+
window.__ELECTRON__ = true;
176177
window.electronAppAPI = window.top.window.electronAppAPI;
177178
window.electronFSAPI = window.top.window.electronFSAPI;
178179
window.electronAPI = window.top.window.electronAPI;

0 commit comments

Comments
 (0)