소스 검색

Merge pull request #20 from ckeditor/t/19

Fix: Fixed Token#_startRefreshing method. Closes #19.
Piotr Jasiun 7 년 전
부모
커밋
03472e83e7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/ckeditor-cloud-services-core/src/token/token.js

+ 1 - 1
packages/ckeditor-cloud-services-core/src/token/token.js

@@ -106,7 +106,7 @@ class Token {
 	 * @protected
 	 */
 	_startRefreshing() {
-		this._refreshInterval = setInterval( this._refreshToken, this._options.refreshInterval );
+		this._refreshInterval = setInterval( () => this._refreshToken(), this._options.refreshInterval );
 	}
 
 	/**