@@ -3,7 +3,7 @@ import { isEqual, transformRequestUsingEndpoint } from '@appbaseio/reactivecore/
33import { updateAnalyticsConfig } from '@appbaseio/reactivecore/lib/actions/analytics' ;
44import VueTypes from 'vue-types' ;
55import Appbase from 'appbase-js' ;
6- import AppbaseAnalytics from '@appbaseio/analytics'
6+ import AppbaseAnalytics from '@appbaseio/analytics' ;
77import 'url-search-params-polyfill' ;
88
99import Provider from '../Provider' ;
@@ -38,7 +38,6 @@ const ReactiveBase = {
3838 enableAppbase : VueTypes . bool . def ( false ) ,
3939 credentials : types . string ,
4040 headers : types . headers ,
41- queryParams : types . string ,
4241 theme : VueTypes . object . def ( { } ) ,
4342 themePreset : VueTypes . string . def ( 'light' ) ,
4443 type : types . string ,
@@ -207,7 +206,8 @@ const ReactiveBase = {
207206 credentials : appbaseRef . credentials ,
208207 // When endpoint prop is used index is not defined, so we use _default
209208 index : appbaseRef . app || '_default' ,
210- globalCustomEvents : this . $props . appbaseConfig && this . $props . appbaseConfig . customEvents ,
209+ globalCustomEvents :
210+ this . $props . appbaseConfig && this . $props . appbaseConfig . customEvents ,
211211 } ;
212212
213213 try {
@@ -217,10 +217,13 @@ const ReactiveBase = {
217217 / \/ \/ ( .* ?) \/ .* / ,
218218 '//$1' ,
219219 ) ;
220- const headerCredentials = this . $props . endpoint . headers && this . $props . endpoint . headers . Authorization ;
221- analyticsInitConfig . credentials = headerCredentials && headerCredentials . replace ( 'Basic ' , '' ) ;
220+ const headerCredentials
221+ = this . $props . endpoint . headers && this . $props . endpoint . headers . Authorization ;
222+ analyticsInitConfig . credentials
223+ = headerCredentials && headerCredentials . replace ( 'Basic ' , '' ) ;
222224 // Decode the credentials
223- analyticsInitConfig . credentials = analyticsInitConfig . credentials && atob ( analyticsInitConfig . credentials ) ;
225+ analyticsInitConfig . credentials
226+ = analyticsInitConfig . credentials && atob ( analyticsInitConfig . credentials ) ;
224227 }
225228 } catch ( e ) {
226229 console . error ( 'Endpoint not set correctly for analytics' ) ;
0 commit comments