You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			487 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			23 lines
		
	
	
		
			487 B
		
	
	
	
		
			JavaScript
		
	
| // eslint-disable-next-line func-names
 | |
| (function() {
 | |
|   'use strict';
 | |
| 
 | |
|   let BUILD_EXPIRATION = 0;
 | |
|   try {
 | |
|     BUILD_EXPIRATION = parseInt(window.getExpiration(), 10);
 | |
|     if (BUILD_EXPIRATION) {
 | |
|       window.log.info(
 | |
|         'Build expires: ',
 | |
|         new Date(BUILD_EXPIRATION).toISOString()
 | |
|       );
 | |
|     }
 | |
|   } catch (e) {
 | |
|     // nothing
 | |
|   }
 | |
| 
 | |
|   window.extension = window.extension || {};
 | |
| 
 | |
|   window.extension.expired = () =>
 | |
|     BUILD_EXPIRATION && Date.now() > BUILD_EXPIRATION;
 | |
| })();
 |