Commit cd1291c348fd12c49012a066ea3b8703eb3009c8

Authored by ww
1 parent ebea68b0

fix: DEFECT-1725删除界面后缀

... ... @@ -2069,11 +2069,18 @@ App.prototype.updateDocumentTitle = function () {
2069 2069
2070 2070 if (file != null) {
2071 2071 const filename = (file.getTitle() != null) ? file.getTitle() : this.defaultFilename
2072   - title = `${filename} - ${title}`
  2072 + title = `${filename}`
2073 2073 }
2074 2074
2075 2075 if (document.title != title)
2076 2076 document.title = title
  2077 + } else {
  2078 + // TODO Thingskit 设置预览模式title
  2079 + const file = this.getCurrentFile()
  2080 + if (!file) return
  2081 + const filename = (file.getTitle() != null) ? file.getTitle() : this.defaultFilename
  2082 + if (document.title != filename)
  2083 + document.title = filename
2077 2084 }
2078 2085 }
2079 2086
... ...
... ... @@ -2057,7 +2057,10 @@
2057 2057 /**
2058 2058 * Specifies the app name. Default is document.title.
2059 2059 */
2060   - Editor.prototype.appName = 'draw.io';
  2060 + // Editor.prototype.appName = 'draw.io';
  2061 +
  2062 + // TODO Thingskit 隐藏title后缀
  2063 + Editor.prototype.appName = '';
2061 2064
2062 2065 /**
2063 2066 * TODO 创建文件时可选类型
... ...