mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
return true if platfroms is undefined
This commit is contained in:
@@ -11,6 +11,7 @@ import {SubHeading} from './subheading';
|
||||
import {Title} from './title';
|
||||
|
||||
export function allowedOnPlatform(platforms) {
|
||||
if (!platforms) return true;
|
||||
return platforms.some(platform => allowedPlatforms.indexOf(platform) > -1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user