From f1e068163929273b43f3d82d1941ed9b68100a6f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 7 Nov 2017 17:04:04 -0500 Subject: [PATCH] remove Q library --- gulpfile.js | 4 ---- package.json | 1 - src/background.html | 1 - src/background.js | 2 +- webpack.common.js | 3 +-- 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index c75fc5d303c..f7a932660ac 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -163,10 +163,6 @@ gulp.task('lib', ['clean:lib'], function () { { src: paths.npmDir + 'jquery/dist/jquery.js', dest: paths.libDir + 'jquery' - }, - { - src: paths.npmDir + 'q/q.js', - dest: paths.libDir + 'q' } ]; diff --git a/package.json b/package.json index e9a4bcfd1bb..bbe22a83e91 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,6 @@ "ngclipboard": "1.1.1", "node-forge": "0.7.1", "papaparse": "4.3.5", - "q": "1.5.0", "rimraf": "2.6.1", "run-sequence": "^2.2.0", "style-loader": "^0.19.0", diff --git a/src/background.html b/src/background.html index 63a2461bfc5..c34b7e20203 100644 --- a/src/background.html +++ b/src/background.html @@ -1,7 +1,6 @@ - diff --git a/src/background.js b/src/background.js index 57c0c893cc7..9c904039ad3 100644 --- a/src/background.js +++ b/src/background.js @@ -909,7 +909,7 @@ var bg_isBackground = true, function logout(expired, callback) { bg_userService.getUserId().then(function (userId) { - return Q.all([ + return Promise.all([ bg_syncService.setLastSync(new Date(0)), bg_tokenService.clearToken(), bg_cryptoService.clearKeys(), diff --git a/webpack.common.js b/webpack.common.js index f0c52d22c4b..5e2e9c64634 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -59,8 +59,7 @@ module.exports = { new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', - 'window.jQuery': 'jquery', - 'Q': 'q' + 'window.jQuery': 'jquery' }), new webpack.optimize.CommonsChunkPlugin({ name: 'popup/vendor',