From d7eccc005b762765e97c7dba214b14aad91fe500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20H=C3=A4usler?= Date: Fri, 12 Apr 2019 17:37:57 +0200 Subject: [PATCH] fix: warning condition (#927) --- src/muya/lib/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/muya/lib/utils/index.js b/src/muya/lib/utils/index.js index a5577470..be2879ad 100644 --- a/src/muya/lib/utils/index.js +++ b/src/muya/lib/utils/index.js @@ -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!') }