bugfix (#37): fix hash issue in URL

This commit is contained in:
Mickael KERJEAN
2018-04-17 18:11:23 +10:00
parent a44d30f779
commit 30e1c34cdf
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ export class ViewerPage extends React.Component {
constructor(props){
super(props);
this.state = {
path: props.match.url.replace('/view', ''),
path: props.match.url.replace('/view', '') + (location.hash || ""),
url: null,
filename: Path.basename(props.match.url.replace('/view', '')) || 'untitled.dat',
opener: null,

View File

@ -11,7 +11,7 @@ RUN cd /app/ && \
# build
apt-get update -y && \
apt install -y libssl-dev build-essential automake python libcurl3-dev && \
npm install nodegit --build-from-source && \
npm install nodegit --build-from-source > /dev/null && \
npm install && \
npm run build && \
# prepare for production