🐛 open new window
This commit is contained in:
parent
6c3c8d44ad
commit
0b00159511
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ export const openNewWindowById = (id: string) => {
|
|||
};
|
||||
if (response.data.rootID === id) {
|
||||
fetchPost("/api/attr/getBlockAttrs", {id}, (attrResponse) => {
|
||||
json.children.scrollAttr = JSON.parse(attrResponse.data.scroll || "{}");
|
||||
if (attrResponse.data.scroll) {
|
||||
json.children.scrollAttr = JSON.parse(attrResponse.data.scroll);
|
||||
}
|
||||
/// #if !BROWSER
|
||||
ipcRenderer.send(Constants.SIYUAN_OPENWINDOW, {
|
||||
id: getCurrentWindow().id,
|
||||
|
|
Loading…
Add table
Reference in a new issue