Skip to content

Commit edb4f32

Browse files
authored
fix(header): With amd build the header authorization initialization threw an error (#148)
1 parent 193add8 commit edb4f32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ws-header/ws-header.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ export class WSHeader extends Component {
5353
showAuthorization: PropTypes.bool
5454
};
5555

56-
/**
57-
* @type {Authorization}
58-
*/
59-
static authorization = new Authorization(this.storage);
60-
6156
/**
6257
* Default storage instance
6358
* @type {AbstractStorage}
6459
*/
6560
static storage = new LocalStorage('');
6661

62+
/**
63+
* @type {Authorization}
64+
*/
65+
static authorization = new Authorization(WSHeader.storage);
66+
6767
/**
6868
* Initialize the storage
6969
* @param {string} type Can be either cookie or local

0 commit comments

Comments
 (0)