mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
This commit is contained in:
parent
6d18a4e20e
commit
bb2fafccb1
1 changed files with 12 additions and 2 deletions
|
|
@ -384,9 +384,19 @@
|
|||
<div class="b3-snackbar__content"></div>
|
||||
</div>
|
||||
<script>
|
||||
if (location.hostname !== "127.0.0.1") {
|
||||
document.querySelector(".b3-button--white").remove();
|
||||
if (location.hostname !== '127.0.0.1') {
|
||||
document.querySelector('.b3-button--white').remove()
|
||||
}
|
||||
|
||||
try {
|
||||
const {ipcRenderer} = require('electron')
|
||||
ipcRenderer.on('siyuan-save-close', (event, close) => {
|
||||
exitSiYuan()
|
||||
})
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
const exitApp = () => {
|
||||
try {
|
||||
const {ipcRenderer} = require('electron')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue