Gruntfile: Remove edits to background.js; no longer applicable
This commit is contained in:
parent
18dddfe436
commit
26f69b633a
1 changed files with 0 additions and 19 deletions
19
Gruntfile.js
19
Gruntfile.js
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue