mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 13:23:28 -05:00
Proper Github Link Fix
This commit is contained in:
parent
bef7dc9488
commit
b182b09817
2 changed files with 2 additions and 8 deletions
|
@ -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`;
|
||||
|
|
|
@ -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 (
|
||||
<ModalRoot transitionState={transitionState} size={ModalSize.MEDIUM} className="vc-text-selectable">
|
||||
|
@ -234,7 +228,7 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
|
|||
<div className="vc-settings-modal-links">
|
||||
<GithubButton
|
||||
text="View source code"
|
||||
href={link}
|
||||
href={`https://github.com/${gitRemote}/tree/main/${pluginMeta.folderName}`}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue