Skip to content

Commit efd1c74

Browse files
committed
fix(refresh scheme): add refreshEndpoint param to mounted method
Allow setting `refreshEndpoint` param of `mounted` method for schemes that extends `refresh` scheme.
1 parent d2f5fe7 commit efd1c74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/schemes/refresh.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export default class RefreshScheme extends LocalScheme {
5959
}
6060
}
6161

62-
mounted () {
63-
return super.mounted({ refreshEndpoint: this.options.endpoints.refresh.url })
62+
mounted ({ refreshEndpoint = this.options.endpoints.refresh.url } = {}) {
63+
return super.mounted({ refreshEndpoint })
6464
}
6565

6666
check () {

0 commit comments

Comments
 (0)