From 0ce02b961d769133d48f34646b721d532c17bdba Mon Sep 17 00:00:00 2001 From: tsukasa <102845+tsukasa@users.noreply.github.com> Date: Thu, 28 Mar 2024 06:48:00 +0100 Subject: [PATCH] Fix: Discord re-rolling Webpack modules - Fixes the definition of the StorageModule in Discord's webpack. Otherwise the VFS would be stuck during initialization due to an exception, thus preventing the loading of BetterDiscord. --- assets/chrome/manifest.json | 2 +- frontend/src/modules/discordmodules.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/chrome/manifest.json b/assets/chrome/manifest.json index e74098a..1aac974 100644 --- a/assets/chrome/manifest.json +++ b/assets/chrome/manifest.json @@ -1,6 +1,6 @@ { "name": "__MSG_extName__", - "version": "1.10.0.20240315", + "version": "1.10.1.20240328", "description": "__MSG_extDesc__", "homepage_url": "https://github.com/tsukasa/BdBrowser", "icons": { diff --git a/frontend/src/modules/discordmodules.js b/frontend/src/modules/discordmodules.js index be0b6ac..3ea68bd 100644 --- a/frontend/src/modules/discordmodules.js +++ b/frontend/src/modules/discordmodules.js @@ -10,5 +10,5 @@ export default { get RouterModule() {return Webpack.getByProps("listeners", "rewrites", "flushRoute");}, /* Other Utils */ - get StorageModule() {return Webpack.getByProps("get", "set", "clear", "stringify");} + get StorageModule() {return Webpack.getByProps("ObjectStorage", "impl")?.impl;} };