mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
🎨 ga
This commit is contained in:
parent
50835bc6ce
commit
ad90e378ab
3 changed files with 11 additions and 4 deletions
|
|
@ -160,8 +160,8 @@ export const onGetConfig = (isStart: boolean) => {
|
|||
mountHelp();
|
||||
}
|
||||
|
||||
gtag("event", "config", {
|
||||
|
||||
window.gtag("event", "config", {
|
||||
a: "1"
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -207,7 +207,7 @@ const initBar = () => {
|
|||
goForward();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
}else if (target.id === "barSync") {
|
||||
} else if (target.id === "barSync") {
|
||||
syncGuide(target);
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
|
@ -399,7 +399,10 @@ const initWindow = () => {
|
|||
}
|
||||
const msgId = showMessage(window.siyuan.languages.exporting, -1);
|
||||
const filePath = result.filePaths[0].endsWith(ipcData.rootTitle) ? result.filePaths[0] : path.join(result.filePaths[0], replaceLocalPath(ipcData.rootTitle));
|
||||
localStorage.setItem(Constants.LOCAL_EXPORTPDF, JSON.stringify(Object.assign(ipcData.pdfOptions, {removeAssets: ipcData.removeAssets, keepFold: ipcData.keepFold})));
|
||||
localStorage.setItem(Constants.LOCAL_EXPORTPDF, JSON.stringify(Object.assign(ipcData.pdfOptions, {
|
||||
removeAssets: ipcData.removeAssets,
|
||||
keepFold: ipcData.keepFold
|
||||
})));
|
||||
try {
|
||||
window.siyuan.printWin.webContents.printToPDF(ipcData.pdfOptions).then((pdfData) => {
|
||||
fetchPost("/api/export/exportHTML", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue