mirror of
https://github.com/adobe/brackets.git
synced 2024-11-20 09:53:00 +01:00
Fixed UriToPath Utill Function (#14706)
* Fixed UriToPath Utill Function * fixed for new file and network file
This commit is contained in:
parent
469f4e1c36
commit
9f50db1f7f
@ -36,7 +36,7 @@ define(function (require, exports, module) {
|
||||
|
||||
let filePath = decodeURIComponent(url.pathname);
|
||||
if (brackets.platform === 'win') {
|
||||
if (filePath[0] === '/') {
|
||||
if (filePath && filePath.includes(":/") && filePath[0] === '/') {
|
||||
filePath = filePath.substr(1);
|
||||
}
|
||||
return filePath;
|
||||
|
Loading…
Reference in New Issue
Block a user