Skip to content

Commit

Permalink
fix url path search
Browse files Browse the repository at this point in the history
fix #97 #94
  • Loading branch information
ctf0 committed May 17, 2019
1 parent b0d4577 commit 652b7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/assets/js/modules/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
return new Promise((resolve) => {
if (!this.inModal) {
let path = new URLSearchParams(location.search)
this.folders = path.has('path') ? path.replace(/\#/g, '').get('path').split('/') : []
this.folders = path.has('path') ? path.get('path').replace(/#/g, '').split('/') : []
}

return resolve()
Expand Down

0 comments on commit 652b7a6

Please sign in to comment.