Skip to content

Commit

Permalink
fix: can not open rc video issue (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux authored Apr 22, 2022
1 parent 6ee600f commit dd3c878
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,16 @@ ipcRenderer.on('COMMUNITY_APP_INFO', (event, arg) => {
ipcRenderer.on('OPEN_ABOUT_DIALOG', (event, arg) => {
window.jupiterElectron.handleAboutPage(window.rcCommunity.appVersion, process.versions.electron);
});

function disableHerculesSetting() {
const globalUID = localStorage.getItem('global.account.UD');
if (globalUID) {
localStorage.setItem(`${JSON.parse(globalUID)}.SETTING.RCVE_HERCULES_ENABLE`, `{"source":false}`);
}
}

disableHerculesSetting();

setInterval(() => {
disableHerculesSetting();
}, 10000);

0 comments on commit dd3c878

Please sign in to comment.