You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Desktop: Fixes #1425 (probably): Fix display of images when using VSCode as external editor
This commit is contained in:
@ -100,6 +100,11 @@ function friendlySafeFilename(e, maxLength = null) {
|
||||
return output.substr(0, maxLength);
|
||||
}
|
||||
|
||||
function toFileProtocolPath(path) {
|
||||
const output = path.replace(/\\/g, "/");
|
||||
return 'file://' + escape(output);
|
||||
}
|
||||
|
||||
function toSystemSlashes(path, os = null) {
|
||||
if (os === null) os = process.platform;
|
||||
if (os === 'win32') return path.replace(/\//g, "\\");
|
||||
@ -153,4 +158,4 @@ function extractExecutablePath(cmd) {
|
||||
return output;
|
||||
}
|
||||
|
||||
module.exports = { extractExecutablePath, basename, dirname, filename, isHidden, fileExtension, safeFilename, friendlySafeFilename, safeFileExtension, toSystemSlashes, rtrimSlashes, ltrimSlashes, quotePath, unquotePath };
|
||||
module.exports = { toFileProtocolPath, extractExecutablePath, basename, dirname, filename, isHidden, fileExtension, safeFilename, friendlySafeFilename, safeFileExtension, toSystemSlashes, rtrimSlashes, ltrimSlashes, quotePath, unquotePath };
|
Reference in New Issue
Block a user