浏览代码

Correctly show paths with spaces in the page title

dom111 6 年之前
父节点
当前提交
1a27c550e6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/webdav.js

+ 1 - 1
src/webdav.js

@@ -364,7 +364,7 @@
             return _files;
         },
         _updateDisplay = function() {
-            document.title = _path + ' - ' + window.location.host;
+            document.title = decodeURIComponent(_path) + ' - ' + window.location.host;
 
             _sortFiles();
             _renderFiles();