mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
bump electron
This commit is contained in:
parent
da4463beb8
commit
8d34ef23e3
3 changed files with 9 additions and 8 deletions
|
@ -36,7 +36,7 @@
|
|||
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
||||
"@typescript-eslint/parser": "^5.59.2",
|
||||
"copyfiles": "^2.4.1",
|
||||
"electron": "27.0.2",
|
||||
"electron": "28.1.0",
|
||||
"electron-builder": "^24.6.3",
|
||||
"eslint": "^8.40.0",
|
||||
"eslint-config-dmitmel": "github:dmitmel/eslint-config-dmitmel",
|
||||
|
|
|
@ -41,8 +41,8 @@ devDependencies:
|
|||
specifier: ^2.4.1
|
||||
version: 2.4.1
|
||||
electron:
|
||||
specifier: 27.0.2
|
||||
version: 27.0.2
|
||||
specifier: 28.1.0
|
||||
version: 28.1.0
|
||||
electron-builder:
|
||||
specifier: ^24.6.3
|
||||
version: 24.6.3
|
||||
|
@ -1027,8 +1027,8 @@ packages:
|
|||
- supports-color
|
||||
dev: true
|
||||
|
||||
/electron@27.0.2:
|
||||
resolution: {integrity: sha512-4fbcHQ40ZDlqhr5Pamm+M5BF7ry2lGqjFTWTJ/mrBwuiPWu6xhV/RWgUhKBaLqKNfAaNl3eMxV3Jc82gv6JauQ==}
|
||||
/electron@28.1.0:
|
||||
resolution: {integrity: sha512-82Y7o4PSWPn1o/aVwYPsgmBw6Gyf2lVHpaBu3Ef8LrLWXxytg7ZRZr/RtDqEMOzQp3+mcuy3huH84MyjdmP50Q==}
|
||||
engines: {node: '>= 12.20.55'}
|
||||
hasBin: true
|
||||
requiresBuild: true
|
||||
|
|
|
@ -6,14 +6,16 @@
|
|||
apps = {};
|
||||
|
||||
ArmCordRPC.listen(async (msg) => {
|
||||
console.warn(msg);
|
||||
if (!Dispatcher) {
|
||||
let wpRequire;
|
||||
window.webpackChunkdiscord_app.push([[Symbol()], {}, (x) => (wpRequire = x)]);
|
||||
window.webpackChunkdiscord_app.pop();
|
||||
|
||||
const modules = wpRequire.c;
|
||||
lookupAsset = Object.values(modules).find(m => m.exports?.fetchAssetIds).exports.fetchAssetIds;
|
||||
lookupApp = Object.values(modules).find(m => m.exports?.fetchApplicationsRPC).exports.fetchApplicationsRPC;
|
||||
lookupAsset = Object.values(modules).find((m) => m.exports?.fetchAssetIds).exports.fetchAssetIds;
|
||||
lookupApp = Object.values(modules).find((m) => m.exports?.fetchApplicationsRPC).exports
|
||||
.fetchApplicationsRPC;
|
||||
|
||||
for (const id in modules) {
|
||||
const mod = modules[id].exports;
|
||||
|
@ -51,7 +53,6 @@
|
|||
const app = apps[appId];
|
||||
if (!msg.activity.name) msg.activity.name = app.name;
|
||||
}
|
||||
|
||||
Dispatcher.dispatch({type: "LOCAL_ACTIVITY_UPDATE", ...msg}); // set RPC status
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue