Skip to content

Commit 18e5a3f

Browse files
committed
fix: add missing electon test api injection
1 parent b18dfe0 commit 18e5a3f

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
@@ -175,6 +175,7 @@
175175
console.warn("Phoenix is loaded in iframe, attempting to use electron APIs from window.top");
176176
window.electronAppAPI = window.top.window.electronAppAPI;
177177
window.electronFSAPI = window.top.window.electronFSAPI;
178+
window.electronAPI = window.top.window.electronAPI;
178179
}
179180
if(window.__TAURI__ || window.__ELECTRON__) {
180181
window.__IS_NATIVE_SHELL__ = true;

0 commit comments

Comments
 (0)