2018-07-07 00:48:14 +00:00
|
|
|
// eslint-disable-next-line func-names
|
2018-04-27 21:25:04 +00:00
|
|
|
(function() {
|
|
|
|
'use strict';
|
2018-07-07 00:48:14 +00:00
|
|
|
|
|
|
|
let BUILD_EXPIRATION = 0;
|
2018-04-27 21:25:04 +00:00
|
|
|
try {
|
2018-07-07 00:48:14 +00:00
|
|
|
BUILD_EXPIRATION = parseInt(window.getExpiration(), 10);
|
2018-04-27 21:25:04 +00:00
|
|
|
if (BUILD_EXPIRATION) {
|
2018-07-21 19:00:08 +00:00
|
|
|
window.log.info(
|
|
|
|
'Build expires: ',
|
|
|
|
new Date(BUILD_EXPIRATION).toISOString()
|
|
|
|
);
|
2018-04-27 21:25:04 +00:00
|
|
|
}
|
2018-07-07 00:48:14 +00:00
|
|
|
} catch (e) {
|
|
|
|
// nothing
|
|
|
|
}
|
2016-04-04 02:34:34 +00:00
|
|
|
|
2018-04-27 21:25:04 +00:00
|
|
|
window.extension = window.extension || {};
|
2016-04-04 02:34:34 +00:00
|
|
|
|
2018-07-07 00:48:14 +00:00
|
|
|
window.extension.expired = () =>
|
|
|
|
BUILD_EXPIRATION && Date.now() > BUILD_EXPIRATION;
|
2016-04-04 02:34:34 +00:00
|
|
|
})();
|