renamed func
This commit is contained in:
parent
54b262aaa1
commit
65651430d5
@ -17,7 +17,7 @@ export default {
|
|||||||
const options = Object.assign({}, defaultParams, params)
|
const options = Object.assign({}, defaultParams, params)
|
||||||
if (assertOptions(options).hasError)
|
if (assertOptions(options).hasError)
|
||||||
throw new Error(`Invalid options given: ${assertOptions(options).error}`)
|
throw new Error(`Invalid options given: ${assertOptions(options).error}`)
|
||||||
const watch = await vue2AndVue3Reactive(
|
const watch = await vue3Reactive(
|
||||||
app,
|
app,
|
||||||
defaultEmptyVueKeycloakInstance()
|
defaultEmptyVueKeycloakInstance()
|
||||||
)
|
)
|
||||||
@ -67,8 +67,8 @@ function defaultEmptyVueKeycloakInstance() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function vue2AndVue3Reactive(app, object) {
|
function vue3Reactive(app, object) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve) => {
|
||||||
// Vue 3
|
// Vue 3
|
||||||
// Assign an object immediately to allow usage of $keycloak in view
|
// Assign an object immediately to allow usage of $keycloak in view
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user