remove Q library

This commit is contained in:
Kyle Spearrin 2017-11-07 17:04:04 -05:00
parent 44eedc8b1d
commit f1e0681639
5 changed files with 2 additions and 9 deletions

View File

@ -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'
}
];

View File

@ -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",

View File

@ -1,7 +1,6 @@
<html>
<head>
<script type="text/javascript" src="lib/jquery/jquery.js"></script>
<script type="text/javascript" src="lib/q/q.js"></script>
<script type="text/javascript" src="lib/tldjs/tld.js"></script>
<script type="text/javascript" src="lib/forge/forge.js"></script>
</head>

View File

@ -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(),

View File

@ -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',