You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
Windows: Fix PDF, video, and audio rendering (#10881)
This commit is contained in:
@ -16,7 +16,12 @@ export interface Options {
|
||||
}
|
||||
|
||||
function resourceUrl(resourceFullPath: string): string {
|
||||
if (resourceFullPath.indexOf('http://') === 0 || resourceFullPath.indexOf('https://')) return resourceFullPath;
|
||||
if (
|
||||
resourceFullPath.indexOf('http://') === 0 || resourceFullPath.indexOf('https://') === 0 || resourceFullPath.indexOf('joplin-content://') === 0 ||
|
||||
resourceFullPath.indexOf('file://') === 0
|
||||
) {
|
||||
return resourceFullPath;
|
||||
}
|
||||
return `file://${toForwardSlashes(resourceFullPath)}`;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user