File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -162,9 +162,8 @@ const Home = () => {
162
162
} , [ ] ) ;
163
163
164
164
const isPassportValid = ( expires : number | undefined ) => {
165
- if ( ! expires ) {
166
- return false
167
- }
165
+ if ( ! expires ) return false
166
+ if ( expires > 32503690800000 ) return true ;
168
167
169
168
const now = Math . floor ( Date . now ( ) ) ;
170
169
const expiresDate = new Date ( expires * 1000 ) ;
@@ -182,7 +181,7 @@ const Home = () => {
182
181
if ( window ?. webkit ) {
183
182
window ?. webkit ?. messageHandlers [ "stopVPN" ] . postMessage ( null )
184
183
setPower ( false ) ;
185
- }
184
+ }
186
185
//@ts -ignore
187
186
if ( window ?. Android ) {
188
187
//@ts -ignore
@@ -194,7 +193,7 @@ const Home = () => {
194
193
setPower ( false ) ;
195
194
}
196
195
} catch ( ex ) { }
197
-
196
+
198
197
setTimeout ( ( ) => setIsConnectionLoading ( false ) , 1000 )
199
198
return
200
199
}
You can’t perform that action at this time.
0 commit comments