We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96e1a67 commit 9061427Copy full SHA for 9061427
lib/installVueDevtools/utils.js
@@ -1,7 +1,7 @@
1
import electron, { remote } from 'electron'
2
import fs from 'fs'
3
-import path from 'path'
4
import https from 'https'
+import path from 'path'
5
6
export const getPath = () => {
7
const savePath = (remote || electron).app.getPath('userData')
@@ -15,6 +15,9 @@ const request = net ? net.request : https.get
15
export const downloadFile = (from, to) =>
16
new Promise((resolve, reject) => {
17
const req = request(from)
18
+ req.on('login', (authInfo, callback) => {
19
+ callback(process.env.VUE_DEVTOOLS_PROXY_USER, process.env.VUE_DEVTOOLS_PROXY_PASSWORD)
20
+ })
21
req.on('response', res => {
22
// Shouldn't handle redirect with `electron.net`, this is for https.get fallback
23
if (
0 commit comments