mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-31 01:58:11 +08:00
bugfix (#37): fix hash issue in URL
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user