You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Clipper: Fixes #1462: Allow importing images from local file with file:// URLs
This commit is contained in:
@ -14,6 +14,7 @@ urlUtils.urlWithoutPath = function(url) {
|
||||
}
|
||||
|
||||
urlUtils.urlProtocol = function(url) {
|
||||
if (!url) return '';
|
||||
const parsed = require('url').parse(url, true);
|
||||
return parsed.protocol;
|
||||
}
|
||||
|
Reference in New Issue
Block a user