1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/packages/lib/migrations/42.ts

22 lines
446 B
TypeScript
Raw Normal View History

import Setting from '../models/Setting';
import checkProviderIsSupported from '../utils/webDAVUtils';
interface Script {
exec: ()=> Promise<void>;
}
const script: Script = <Script>{};
script.exec = async () => {
try {
checkProviderIsSupported(Setting.value('sync.6.path'));
Setting.setValue('sync.allowUnsupportedProviders', 0);
} catch (error) {
Setting.setValue('sync.allowUnsupportedProviders', 1);
}
};
export default script;