remove Q library
This commit is contained in:
parent
44eedc8b1d
commit
f1e0681639
|
@ -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'
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue