1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Optimised markdown rendering for mobile and electron

This commit is contained in:
Laurent Cozic
2017-11-07 18:39:11 +00:00
parent 5024dcf668
commit 9e3af21e66
7 changed files with 397 additions and 449 deletions

View File

@ -68,7 +68,7 @@ class Resource extends BaseItem {
}
static isResourceUrl(url) {
return url.length === 34 && url[0] === ':' && url[1] === '/';
return url && url.length === 34 && url[0] === ':' && url[1] === '/';
}
static urlToId(url) {