Selaa lähdekoodia

Fixed `_startRefreshing` method.

Maciej Bukowski 7 vuotta sitten
vanhempi
sitoutus
0ff85b5a1b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 );
 	}
 
 	/**