1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-03-05 15:25:24 +00:00

client - get browser fingerprint and set header

This commit is contained in:
2018-01-10 21:03:30 -06:00
parent 392e6de14c
commit 8eb31b984e
7 changed files with 71 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
import { action, observable } from 'mobx';
import { UserModel } from '../model';
import { resetAuthorizationHeader, setAuthorizationHeader } from '../axios/axios';
import { resetAuthorizationHeader } from '../axios/axios';
export class UserStore {
@@ -22,7 +22,6 @@ export class UserStore {
const u = localStorage.getItem('user');
if (u) {
this.user = JSON.parse(u);
setAuthorizationHeader(this.user!.token);
}
}