chore: disableHardwareAcceleration on windows7
This commit is contained in:
		
							parent
							
								
									b59c3c87fe
								
							
						
					
					
						commit
						114a47142b
					
				| 
						 | 
				
			
			@ -3,7 +3,6 @@ import { join } from 'path'
 | 
			
		|||
import { app, BrowserWindow, ipcMain } from 'electron'
 | 
			
		||||
import Store from 'electron-store'
 | 
			
		||||
 | 
			
		||||
// https://stackoverflow.com/questions/42524606/how-to-get-windows-version-using-node-js
 | 
			
		||||
const isWin7 = os.release().startsWith('6.1')
 | 
			
		||||
if (isWin7) app.disableHardwareAcceleration()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue