Gruntfile: Remove edits to background.js; no longer applicable

This commit is contained in:
Scott Nonnenberg 2018-03-21 18:10:18 -07:00
parent 18dddfe436
commit 26f69b633a
No known key found for this signature in database
GPG key ID: 5F82280C35134661

View file

@ -149,25 +149,6 @@ module.exports = function(grunt) {
},
src: {
files: [{ expand: true, dest: 'dist/', src: ['<%= dist.src %>'] }],
options: {
process: function(content, srcpath) {
if (srcpath.match('background.js')) {
return content.replace(
/textsecure-service-staging.whispersystems.org/g,
'textsecure-service-ca.whispersystems.org');
} else if (srcpath.match('expire.js')) {
var gitinfo = grunt.config.get('gitinfo');
var commited = gitinfo.local.branch.current.lastCommitTime;
var time = Date.parse(commited) + 1000 * 60 * 60 * 24 * 90;
return content.replace(
/var BUILD_EXPIRATION = 0/,
"var BUILD_EXPIRATION = " + time
);
} else {
return content;
}
}
}
}
},
jscs: {