Proper Github Link Fix

This commit is contained in:
thororen 2024-08-25 01:11:16 -04:00
parent bef7dc9488
commit b182b09817
2 changed files with 2 additions and 8 deletions

View file

@ -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>
)}