mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
Desktop, Cli, Mobile: Reactivate pCloud synchronisation
This commit is contained in:
parent
f42a358818
commit
23032b9417
@ -20,9 +20,9 @@ describe('checkProviderIsSupported', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should throw an error with the name of the provider when an unsupported provider path is provided', () => {
|
it('should throw an error with the name of the provider when an unsupported provider path is provided', () => {
|
||||||
expect(() => checkProviderIsSupported('https://pcloud.com')).toThrowError('The WebDAV implementation of pcloud is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.');
|
expect(() => checkProviderIsSupported('https://jianguoyun.com')).toThrowError('The WebDAV implementation of jianguoyun is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.');
|
||||||
|
|
||||||
expect(() => checkProviderIsSupported('https://api.pcloud.com')).toThrowError('The WebDAV implementation of pcloud is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.');
|
expect(() => checkProviderIsSupported('https://api.jianguoyun.com')).toThrowError('The WebDAV implementation of jianguoyun is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.');
|
||||||
|
|
||||||
// expect(() => checkProviderIsSupported('https://api-pcloud-test.com')).toThrowError('The WebDAV implementation of pcloud is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.');
|
// expect(() => checkProviderIsSupported('https://api-pcloud-test.com')).toThrowError('The WebDAV implementation of pcloud is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.');
|
||||||
});
|
});
|
||||||
|
@ -22,7 +22,7 @@ const pathContainsUnsupportedProvider = (path: string, unsupportedProviders: str
|
|||||||
export const checkProviderIsSupported = (path: string): void => {
|
export const checkProviderIsSupported = (path: string): void => {
|
||||||
if (Setting.value('sync.allowUnsupportedProviders') === 1) return;
|
if (Setting.value('sync.allowUnsupportedProviders') === 1) return;
|
||||||
|
|
||||||
const unsupportedProviders = ['pcloud', 'jianguoyun'];
|
const unsupportedProviders = ['jianguoyun'];
|
||||||
for (const p of unsupportedProviders) {
|
for (const p of unsupportedProviders) {
|
||||||
if (pathContainsUnsupportedProvider(path, unsupportedProviders)) {
|
if (pathContainsUnsupportedProvider(path, unsupportedProviders)) {
|
||||||
throw new Error(_('The WebDAV implementation of %s is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.', p));
|
throw new Error(_('The WebDAV implementation of %s is incompatible with Joplin, and as such is no longer supported. Please use a different sync method.', p));
|
||||||
|
Loading…
Reference in New Issue
Block a user