We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c59db4 commit 60313b1Copy full SHA for 60313b1
app/components/InstallCommand.tsx
@@ -8,7 +8,8 @@ type InstallCommandProps = {
8
};
9
10
export const InstallCommand = ({ name, prefix, version }: InstallCommandProps) => {
11
- const installString = `${prefix} electron@${version.slice(1)}`;
+ const isNightly = version.includes('nightly');
12
+ const installString = `${prefix} electron@${isNightly ? 'npm:electron-nightly@' : ''}${version.slice(1)}`;
13
14
const [recentlyCopied, setDidRecentlyCopy] = useState(false);
15
0 commit comments