signal-desktop/js/expire.js

17 lines
409 B
JavaScript
Raw Normal View History

2018-04-27 21:25:04 +00:00
(function() {
'use strict';
var BUILD_EXPIRATION = 0;
try {
BUILD_EXPIRATION = parseInt(window.getExpiration());
2018-04-27 21:25:04 +00:00
if (BUILD_EXPIRATION) {
console.log('Build expires: ', new Date(BUILD_EXPIRATION).toISOString());
}
} catch (e) {}
2018-04-27 21:25:04 +00:00
window.extension = window.extension || {};
2018-04-27 21:25:04 +00:00
extension.expired = function() {
return BUILD_EXPIRATION && Date.now() > BUILD_EXPIRATION;
};
})();