Skip to content

Commit 6e92c1a

Browse files
Fix root path
1 parent 7012398 commit 6e92c1a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function build(previousSizeMap) {
171171
console.log(' ' + chalk.dim('// ...'));
172172
console.log(' ' + chalk.yellow('"scripts"') + ': {');
173173
console.log(' ' + chalk.dim('// ...'));
174-
console.log(' ' + chalk.yellow('"gamedata"') + ': ' + chalk.yellow('"npm run build&&gh-pages -d build"'));
174+
console.log(' ' + chalk.yellow('"gamedata"') + ': ' + chalk.yellow('"npm run build&&gh-pages -d build_webpack"'));
175175
console.log(' }');
176176
console.log();
177177
console.log('Then run:');

src/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export const VERSION = require('../package.json').version
3838
export const STORAGE_PLAYER_DATA_KEY = `ethernaut_player_data_${VERSION}_`
3939

4040
// Paths
41-
export const PATH_ROOT = '/'
41+
export const PATH_ROOT = '/cypherpunks-ctf/'
4242
export const PATH_NOT_FOUND = '/404'
43-
export const PATH_HELP = '/help'
43+
export const PATH_HELP = `${PATH_ROOT}help`
4444
export const PATH_LEVEL_ROOT = `${PATH_ROOT}level/`
4545
export const PATH_LEVEL = `${PATH_LEVEL_ROOT}:address`
4646
export const PATH_STATS = `${PATH_ROOT}stats`

src/containers/Header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class Header extends React.Component {
3131
</button>
3232
<div className="navbar-brand" style={{paddingTop: '0', paddingBottom: '0', paddingLeft: '25px', lineHeight: '49px'}}>
3333
<span>
34-
<a href="https://cypherpunks-core.github.io" target="_blank" rel="noopener noreferred">
35-
<img style={{width: '30px', height: '30px'}} src='../../imgs/cypherpunks-logo.png' alt=''/>
34+
<a href={constants.PATH_ROOT} target="_blank" rel="noopener noreferred">
35+
<img style={{width: '30px', height: '30px'}} src={`${constants.PATH_ROOT}/imgs/cypherpunks-logo.png`} alt=''/>
3636
</a>
3737
</span>
3838
&nbsp;

0 commit comments

Comments
 (0)