mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 07:56:57 +00:00
fix image request going crazy
This commit is contained in:
1 parent
15df8f2a22
commit
7a0348536c
2 files changed
+1
-3
No files matched your search
@@ -253,8 +253,6 @@ function tokenizeCustomMarkdown(text) {
|
||||
const closingMatch = lineText.match(/ *(}})/d);
|
||||
|
||||
if(closingMatch) {
|
||||
console.log('closing', closingMatch);
|
||||
console.log(closingMatch.indices[1][0], closingMatch.indices[1][1])
|
||||
tokens.push({ line: lineNumber, from: closingMatch.indices[1][0], to: closingMatch.indices[1][1], type: customTags.block });
|
||||
} else {
|
||||
tokens.push({ line: lineNumber, type: customTags.block });
|
||||
@@ -358,7 +356,7 @@ class ImageWidget extends WidgetType {
|
||||
|
||||
|
||||
img.onerror = ()=>{
|
||||
img.src = 'client/icons/Broken-image-icon-in-Chrome.png';
|
||||
img.src = 'client/icons/broken-image.jpg';
|
||||
};
|
||||
|
||||
return img;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Reference in new issue
Block a user