diff options
author | 2021-09-14 11:03:28 +0200 | |
---|---|---|
committer | 2021-09-14 11:03:28 +0200 | |
commit | 087113d8a1214ba4c7df03bfe66747d8d944280c (patch) | |
tree | 4d853a03057138dfa845cd6a7d91ccf63565a1a6 /src/electron/ipc-api/focusState.js | |
parent | chore: codebase improvements (#1930) (diff) | |
download | ferdium-app-087113d8a1214ba4c7df03bfe66747d8d944280c.tar.gz ferdium-app-087113d8a1214ba4c7df03bfe66747d8d944280c.tar.zst ferdium-app-087113d8a1214ba4c7df03bfe66747d8d944280c.zip |
chore: convert JS to TS (#1934)
Diffstat (limited to 'src/electron/ipc-api/focusState.js')
-rw-r--r-- | src/electron/ipc-api/focusState.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/electron/ipc-api/focusState.js b/src/electron/ipc-api/focusState.js deleted file mode 100644 index 0b4a0d8f3..000000000 --- a/src/electron/ipc-api/focusState.js +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | export default (params) => { | ||
2 | params.mainWindow.on('focus', () => { | ||
3 | params.mainWindow.webContents.send('isWindowFocused', true); | ||
4 | }); | ||
5 | |||
6 | params.mainWindow.on('blur', () => { | ||
7 | params.mainWindow.webContents.send('isWindowFocused', false); | ||
8 | }); | ||
9 | }; | ||