Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Fix issue where images wouldn't load from general filesystem on Windo…
Browse files Browse the repository at this point in the history
…ws (#862)
  • Loading branch information
Animus-Surge authored Nov 8, 2020
1 parent fa6f1c5 commit 7ac1b3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/classes/filesystem.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@ class FilesystemDisplay {
name = block.name;
}

block.path = block.path.replace(/\\/g, "/");

switch(type || block.type) {
case "image":
html = `<img class="fsDisp_mediaDisp" src="${window._encodePathURI(path || block.path)}" ondragstart="return false;">`;
Expand Down

0 comments on commit 7ac1b3c

Please sign in to comment.