diff --git a/scripts/build/common.mts b/scripts/build/common.mts index c2321fcf..334b356a 100644 --- a/scripts/build/common.mts +++ b/scripts/build/common.mts @@ -128,7 +128,7 @@ export const globPlugins: (kind: "web" | "discordDesktop" | "vencordDesktop" | " } } - const folderName = `src/${dir}/${fileName}`.replace(/^src\/plugins\//, ""); + const folderName = `src/${dir}/${fileName}`; const mod = `p${i}`; code += `import ${mod} from "./${dir}/${fileName.replace(/\.tsx?$/, "")}";\n`; diff --git a/src/components/PluginSettings/PluginModal.tsx b/src/components/PluginSettings/PluginModal.tsx index 2bccf216..0771a82a 100644 --- a/src/components/PluginSettings/PluginModal.tsx +++ b/src/components/PluginSettings/PluginModal.tsx @@ -207,12 +207,6 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti */ const pluginMeta = PluginMeta[plugin.name]; - let link: string; - if (pluginMeta.folderName.includes("equicordplugins")) { - link = `https://github.com/${gitRemote}/tree/main/${pluginMeta.folderName}`; - } else { - link = `https://github.com/${gitRemote}/tree/main/src/plugins/${pluginMeta.folderName}`; - } return ( @@ -234,7 +228,7 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
)}