fix: Fix scrollbars and window minimize/close actions for win

This commit is contained in:
Susmitha Girumala committed 2021-06-06 02:12:39 -04:00
1 parent 196d01aae2
commit fefae2b73d
6 files changed
+84 -43

No files matched your search

+8 -1
View File
@@ -62,7 +62,14 @@ export default function initializeMockIPC(server) {
}
/**
* Check for browser running on windows OS
* Check for browsers running on mac OS
*/
isMacOS() {
return Boolean(window.navigator.userAgent.match(/(macintosh)/i));
}
/**
* Check for browsers running on windows OS
*/
isWindowsOS() {
return Boolean(window.navigator.userAgent.match(/(windows)/i));