Skip to content

Commit

Permalink
💩 Disable Discord Rich Presence on Windows 11
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Dec 13, 2023
1 parent 2595559 commit 64ff5fb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/js/discordRichPresence.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
/* eslint-disable no-console */
(function discordRichPresence() {
// Disable IPC for windows 11 as it quacking crashes
if (process.platform === 'win32') {
const windows11 = require('child_process')
.execSync('ver')
.toString()
.trim()
.indexOf('Version 10.0.2') !== -1;
if (windows11) {
return;
}
}

const appId = '749670101904785502';
const startTimestamp = new Date();
let failed = false;
Expand Down

0 comments on commit 64ff5fb

Please sign in to comment.