mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2024-10-04 07:07:54 +03:00
Fix #299 Decode URL twice to fix PDF refresh problem
This commit is contained in:
parent
dc18c39298
commit
4c8d39cada
@ -1,6 +1,6 @@
|
||||
# Change Log
|
||||
|
||||
## [3.6.1] - Unreleased
|
||||
## [3.6.1] - 2017-11-06
|
||||
### Fixed
|
||||
- (#297) PDF path can contain `#` now.
|
||||
|
||||
|
@ -35,7 +35,7 @@ export class Server {
|
||||
if (!request.url) {
|
||||
return
|
||||
}
|
||||
request.url = decodeURIComponent(request.url)
|
||||
request.url = decodeURIComponent(decodeURIComponent(request.url))
|
||||
if (request.url.indexOf('pdf:') >= 0 && request.url.indexOf('viewer.html') < 0) {
|
||||
// The second backslash was encoded as %2F, and the first one is prepended by request
|
||||
const fileName = request.url.replace('//pdf:', '')
|
||||
|
Loading…
Reference in New Issue
Block a user