mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
2.2.1
This commit is contained in:
@@ -361,7 +361,7 @@ export class EmbeddedFilesLoader {
|
||||
isMask,
|
||||
};
|
||||
|
||||
const shouldUseCache = file && imageCache.isReady();
|
||||
const shouldUseCache = this.plugin.settings.allowImageCacheInScene && file && imageCache.isReady();
|
||||
const cacheKey:ImageKey = {
|
||||
filepath: file.path,
|
||||
blockref: null,
|
||||
@@ -380,7 +380,9 @@ export class EmbeddedFilesLoader {
|
||||
linkpartAlias: null,
|
||||
}
|
||||
|
||||
const maybeSVG = await imageCache.getImageFromCache(cacheKey);
|
||||
const maybeSVG = shouldUseCache
|
||||
? await imageCache.getImageFromCache(cacheKey)
|
||||
: undefined;
|
||||
|
||||
const svg = (maybeSVG && (maybeSVG instanceof SVGSVGElement))
|
||||
? maybeSVG
|
||||
|
||||
Reference in New Issue
Block a user