mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 01:40:13 +08:00
opti: typo error
This commit is contained in:
parent
2ff6b77488
commit
818dd254dc
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
|||||||
dist/electron/*
|
dist/electron/*
|
||||||
dist/web/*
|
dist/web/*
|
||||||
build/*
|
build/*
|
||||||
|
static/themes/*
|
||||||
src/muya/dist/
|
src/muya/dist/
|
||||||
src/muya/node_modules/
|
src/muya/node_modules/
|
||||||
coverage
|
coverage
|
||||||
|
@ -182,7 +182,6 @@ ipcMain.on('AGANI::window::drop', (e, fileList) => {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
// handle import file
|
// handle import file
|
||||||
console.log(file)
|
|
||||||
if (PANDOC_EXTENSIONS.some(ext => file.endsWith(ext))) {
|
if (PANDOC_EXTENSIONS.some(ext => file.endsWith(ext))) {
|
||||||
pandocFile(file)
|
pandocFile(file)
|
||||||
break
|
break
|
||||||
@ -250,7 +249,7 @@ export const importFile = async win => {
|
|||||||
const existsPandoc = await pandoc.exists()
|
const existsPandoc = await pandoc.exists()
|
||||||
if (!existsPandoc) {
|
if (!existsPandoc) {
|
||||||
win.webContents.send('AGANI::pandoc-not-exists', {
|
win.webContents.send('AGANI::pandoc-not-exists', {
|
||||||
title: 'Export Warning',
|
title: 'Import Warning',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: 'Install pandoc before you want to export files.',
|
message: 'Install pandoc before you want to export files.',
|
||||||
time: 10000
|
time: 10000
|
||||||
|
Loading…
Reference in New Issue
Block a user