You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Desktop: Fixes #6145: Opening a file with ctrl-click in the editor results in a 'network error' dialogue
This commit is contained in:
@ -9,6 +9,7 @@ import Tag from './Tag';
|
||||
import ItemChange from './ItemChange';
|
||||
import Resource from './Resource';
|
||||
import { ResourceEntity } from '../services/database/types';
|
||||
import { toForwardSlashes } from '../path-utils';
|
||||
const ArrayUtils = require('../ArrayUtils.js');
|
||||
|
||||
async function allItems() {
|
||||
@ -259,7 +260,8 @@ describe('models/Note', function() {
|
||||
const t1 = r1.updated_time;
|
||||
const t2 = r2.updated_time;
|
||||
|
||||
const resourceDirE = markdownUtils.escapeLinkUrl(resourceDir);
|
||||
const resourceDirE = markdownUtils.escapeLinkUrl(toForwardSlashes(resourceDir));
|
||||
const fileProtocol = `file://${process.platform === 'win32' ? '/' : ''}`;
|
||||
|
||||
const testCases = [
|
||||
[
|
||||
@ -285,17 +287,17 @@ describe('models/Note', function() {
|
||||
[
|
||||
true,
|
||||
``,
|
||||
``,
|
||||
``,
|
||||
],
|
||||
[
|
||||
true,
|
||||
`  `,
|
||||
`  `,
|
||||
`  `,
|
||||
],
|
||||
[
|
||||
true,
|
||||
``,
|
||||
``,
|
||||
``,
|
||||
],
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user