mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
add option to disable auto-download of images for offline storage, #2859
This commit is contained in:
@@ -323,6 +323,10 @@ function replaceUrl(content, url, imageNote) {
|
||||
}
|
||||
|
||||
function downloadImages(noteId, content) {
|
||||
if (!optionService.getOptionBool("downloadImagesAutomatically")) {
|
||||
return content;
|
||||
}
|
||||
|
||||
const imageRe = /<img[^>]*?\ssrc=['"]([^'">]+)['"]/ig;
|
||||
let imageMatch;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user