( viewer: Viewer, platformDetails: ?PlatformDetails, )
| 7 | import type { Viewer } from './viewer.js'; |
| 8 | |
| 9 | async function verifyClientSupported( |
| 10 | viewer: Viewer, |
| 11 | platformDetails: ?PlatformDetails, |
| 12 | ) { |
| 13 | if (hasMinCodeVersion(platformDetails, { native: 446, web: 146 })) { |
| 14 | return; |
| 15 | } |
| 16 | const error = new ServerError('client_version_unsupported'); |
| 17 | error.platformDetails = platformDetails; |
| 18 | throw error; |
| 19 | } |
| 20 | |
| 21 | export { verifyClientSupported }; |
no test coverage detected