mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 16:12:24 +08:00
fix: warning condition (#927)
This commit is contained in:
parent
048340323d
commit
d7eccc005b
@ -181,7 +181,7 @@ export const getImageInfo = (src, baseUrl = window.DIRNAME) => {
|
||||
if (imageExtension) {
|
||||
const isAbsoluteLocal = /^(?:\/|\\\\|[a-zA-Z]:\\).+/.test(src)
|
||||
if (isUrl || (!isAbsoluteLocal && !baseUrl)) {
|
||||
if (!baseUrl && isInElectron) {
|
||||
if (!isUrl && !baseUrl && isInElectron) {
|
||||
console.warn('"baseUrl" is not defined!')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user