mirror of
https://github.com/marktext/marktext.git
synced 2025-05-04 06:31:36 +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) {
|
if (imageExtension) {
|
||||||
const isAbsoluteLocal = /^(?:\/|\\\\|[a-zA-Z]:\\).+/.test(src)
|
const isAbsoluteLocal = /^(?:\/|\\\\|[a-zA-Z]:\\).+/.test(src)
|
||||||
if (isUrl || (!isAbsoluteLocal && !baseUrl)) {
|
if (isUrl || (!isAbsoluteLocal && !baseUrl)) {
|
||||||
if (!baseUrl && isInElectron) {
|
if (!isUrl && !baseUrl && isInElectron) {
|
||||||
console.warn('"baseUrl" is not defined!')
|
console.warn('"baseUrl" is not defined!')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user