This commit is contained in:
Vanessa 2022-08-08 23:25:07 +08:00
parent b1ee790ee2
commit a8072882fc
5 changed files with 24 additions and 16 deletions

View file

@ -23,8 +23,6 @@ import {showMessage} from "../dialog/message";
import {openFileById, updatePanelByEditor} from "../editor/util";
import {scrollCenter} from "../util/highlightById";
import {getAllModels} from "./getAll";
import {fetchPost} from "../util/fetch";
import {onGet} from "../protyle/util/onGet";
import {countBlockWord} from "./status";
import {saveScroll} from "../protyle/scroll/saveScroll";
@ -312,7 +310,7 @@ export class Wnd {
}
});
const initData = currentTab.headElement.getAttribute("data-initdata")
const initData = currentTab.headElement.getAttribute("data-initdata");
if (initData) {
const json = JSON.parse(initData);
currentTab.addModel(new Editor({