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 55a79fd commit b6d257bCopy full SHA for b6d257b
1 file changed
src/index.html
@@ -173,6 +173,7 @@
173
// this means that we are loaded in an iframe in the specrunner. Electron doesnt expose APIs
174
// in its iframes, so we directly use the top most windows electron api objects for tests to run properly.
175
console.warn("Phoenix is loaded in iframe, attempting to use electron APIs from window.top");
176
+ window.__ELECTRON__ = true;
177
window.electronAppAPI = window.top.window.electronAppAPI;
178
window.electronFSAPI = window.top.window.electronFSAPI;
179
window.electronAPI = window.top.window.electronAPI;
0 commit comments