feat: auto reconnect rpc and CSP fix

This commit is contained in:
xhayper
2023-01-12 01:41:50 +07:00
parent 3a822f611a
commit dbfddebbc2
4 changed files with 71 additions and 27 deletions

View File

@ -18,6 +18,15 @@ module.exports = (win, options, refreshMenu) => {
enabled: !isConnected(),
click: connect,
},
{
label: "Auto reconnect",
type: "checkbox",
checked: options.autoReconnect,
click: (item) => {
options.autoReconnect = item.checked;
setMenuOptions('discord', options);
},
},
{
label: "Clear activity",
click: clear,