| 12345678910111213141516171819202122232425262728 | 
							- // @flow
 - 
 - import { browser } from '../../../react/features/base/lib-jitsi-meet';
 - 
 - /**
 -  * Returns true if Jitsi Meet is running in too old jitsi-meet-electron app and false otherwise.
 -  *
 -  * @returns {boolean} - True if Jitsi Meet is running in too old jitsi-meet-electron app and false otherwise.
 -  */
 - export function isOldJitsiMeetElectronApp() {
 -     if (!browser.isElectron()) {
 -         return false;
 -     }
 - 
 -     const match = navigator.userAgent.match(/(JitsiMeet)\s*\/\s*((\d+)\.[^\s]*)/);
 - 
 -     if (!Array.isArray(match) || match.length < 3) {
 -         return false;
 -     }
 - 
 -     const majorVersion = Number(match[3]);
 - 
 -     if (isNaN(majorVersion) || majorVersion >= 2) {
 -         return false;
 -     }
 - 
 -     return true;
 - }
 
 
  |