您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

functions.ts 708B

123456789101112131415161718192021222324252627
  1. import { browser } from '../base/lib-jitsi-meet';
  2. /**
  3. * Returns true if Jitsi Meet is running in too old jitsi-meet-electron app and false otherwise.
  4. *
  5. * @returns {boolean} - True if Jitsi Meet is running in too old jitsi-meet-electron app and false otherwise.
  6. */
  7. export function isOldJitsiMeetElectronApp() {
  8. if (!browser.isElectron()) {
  9. return false;
  10. }
  11. // @ts-ignore
  12. const match = navigator.userAgent.match(/(JitsiMeet)\s*\/\s*((\d+)\.[^\s]*)/);
  13. if (!Array.isArray(match) || match.length < 3) {
  14. return false;
  15. }
  16. const majorVersion = Number(match[3]);
  17. if (isNaN(majorVersion) || majorVersion >= 2022) {
  18. return false;
  19. }
  20. return true;
  21. }