mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 19:10:35 +08:00
🐛 open new window
This commit is contained in:
parent
6c3c8d44ad
commit
0b00159511
@ -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…
Reference in New Issue
Block a user