From 26f69b633ad14e2c5de7a73fa8d0c36bc6ebcaef Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 21 Mar 2018 18:10:18 -0700 Subject: [PATCH] Gruntfile: Remove edits to background.js; no longer applicable --- Gruntfile.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ed99860fe..5cc6fc9e2 100644 --- a/Gruntfile.js +++ b/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: {