Skip to content

Commit

Permalink
Fix miss avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
trazyn committed Jul 23, 2018
1 parent 10b29c8 commit cb0e627
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,6 @@ async function getIcon(cookies, userid, src) {
responseType: 'arraybuffer',
headers: {
Cookie: cookies,
Host: 'wx2.qq.com',
Referer: 'https://wx2.qq.com/',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8',
},
});
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
]
},
"dependencies": {
"@exponent/electron-cookies": "^2.0.0",
"auto-launch": "^5.0.1",
"axios": "^0.18.0",
"browser-md5-file": "^1.0.0",
Expand Down
5 changes: 0 additions & 5 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React, { Component } from 'react';
import { render } from 'react-dom';
import { Provider } from 'mobx-react';
import { HashRouter } from 'react-router-dom';
import ElectronCookies from '@exponent/electron-cookies';
import { ipcRenderer } from 'electron';

import './global.css';
Expand All @@ -12,10 +11,6 @@ import 'utils/albumcolors';
import getRoutes from './js/routes';
import stores from './js/stores';

ElectronCookies.enable({
origin: 'https://wx2.qq.com',
});

class App extends Component {
async componentWillMount() {
if (window.navigator.onLine) {
Expand Down

0 comments on commit cb0e627

Please sign in to comment.