From 65651430d5a80a674b653202a6d99153b111b37f Mon Sep 17 00:00:00 2001 From: Darko Luketic Date: Thu, 9 Mar 2023 19:17:39 +0100 Subject: [PATCH] renamed func --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index d06ba48..616102f 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ export default { const options = Object.assign({}, defaultParams, params) if (assertOptions(options).hasError) throw new Error(`Invalid options given: ${assertOptions(options).error}`) - const watch = await vue2AndVue3Reactive( + const watch = await vue3Reactive( app, defaultEmptyVueKeycloakInstance() ) @@ -67,8 +67,8 @@ function defaultEmptyVueKeycloakInstance() { } } -function vue2AndVue3Reactive(app, object) { - return new Promise((resolve, reject) => { +function vue3Reactive(app, object) { + return new Promise((resolve) => { // Vue 3 // Assign an object immediately to allow usage of $keycloak in view