renamed func

This commit is contained in:
Darko Luketic 2023-03-09 19:17:39 +01:00
parent 54b262aaa1
commit 65651430d5

View File

@ -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