You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
|
||||
const validatePluginPlatforms = (platforms: string[]) => {
|
||||
if (!platforms) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Array.isArray(platforms) || platforms.some(p => typeof p !== 'string')) {
|
||||
throw new Error('If specified, platforms must be a string array');
|
||||
}
|
||||
};
|
||||
|
||||
export default validatePluginPlatforms;
|
Reference in New Issue
Block a user