Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
fix: refresh rate on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsSim committed Dec 27, 2023
1 parent 0e24db2 commit 79a52bb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/fsolauncher/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,10 @@ function getJSON( url, timeout = 30000 ) {
function getDisplayRefreshRate() {
const { screen } = require( 'electron' );

if ( process.platform == 'win32' ) {
const primaryDisplay = screen.getPrimaryDisplay();
const refreshRate = primaryDisplay.displayFrequency;
if ( refreshRate < 30 ) return 30;
return refreshRate;
}
return 60;
const primaryDisplay = screen.getPrimaryDisplay();
const refreshRate = primaryDisplay.displayFrequency;
if ( refreshRate < 30 ) return 30;
return refreshRate;
}

function githubApiHeaders( url, headers = {} ) {
Expand Down

0 comments on commit 79a52bb

Please sign in to comment.