mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 08:46:09 +01:00
This commit is contained in:
parent
f45d2bd37b
commit
fb007a61c0
16 changed files with 131 additions and 63 deletions
|
|
@ -11,7 +11,7 @@ import {getSearch} from "../util/functions";
|
|||
import {initWindow} from "../boot/onGetConfig";
|
||||
import {App} from "../index";
|
||||
|
||||
export const init = (app:App) => {
|
||||
export const init = (app: App) => {
|
||||
webFrame.setZoomFactor(window.siyuan.storage[Constants.LOCAL_ZOOM]);
|
||||
globalShortcut(app);
|
||||
fetchPost("/api/system/getEmojiConf", {}, response => {
|
||||
|
|
@ -19,13 +19,13 @@ export const init = (app:App) => {
|
|||
|
||||
const layout = JSON.parse(sessionStorage.getItem("layout") || "{}");
|
||||
if (layout.layout) {
|
||||
JSONToCenter(layout.layout);
|
||||
JSONToCenter(app, layout.layout);
|
||||
window.siyuan.layout.centerLayout = window.siyuan.layout.layout;
|
||||
return;
|
||||
}
|
||||
const tabJSON = JSON.parse(getSearch("json"));
|
||||
tabJSON.active = true;
|
||||
JSONToCenter({
|
||||
JSONToCenter(app, {
|
||||
direction: "lr",
|
||||
resize: "lr",
|
||||
size: "auto",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue