2016-04-04 02:34:34 +00:00
|
|
|
;(function() {
|
|
|
|
'use strict';
|
|
|
|
var BUILD_EXPIRATION = 0;
|
2017-04-13 17:52:12 +00:00
|
|
|
try {
|
|
|
|
BUILD_EXPIRATION = parseInt(window.config.buildExpiration);
|
|
|
|
if (BUILD_EXPIRATION) {
|
|
|
|
console.log("Build expires: ", new Date(BUILD_EXPIRATION).toISOString());
|
|
|
|
}
|
|
|
|
} catch (e) {}
|
2016-04-04 02:34:34 +00:00
|
|
|
|
|
|
|
window.extension = window.extension || {};
|
|
|
|
|
|
|
|
extension.expired = function() {
|
|
|
|
return (BUILD_EXPIRATION && Date.now() > BUILD_EXPIRATION);
|
|
|
|
};
|
|
|
|
})();
|