File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
src/Umbraco.Cms.Integrations.Search.Algolia/Client/src Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,14 @@ import { OpenAPI } from "./api/index.ts";
5
5
import { manifest as algoliaDashboardManifest } from "./dashboard/manifest.ts" ;
6
6
import { manifest as algoliaContextManifest } from "./context/manifest.ts" ;
7
7
8
-
9
8
export const onInit : UmbEntryPointOnInit = ( host , extensionRegistry ) => {
10
9
11
10
extensionRegistry . registerMany ( [ algoliaDashboardManifest , algoliaContextManifest ] ) ;
12
11
13
12
host . consumeContext ( UMB_AUTH_CONTEXT , async ( instance ) => {
14
-
15
- if ( ! instance ) return ;
16
-
17
13
const umbOpenApi = instance . getOpenApiConfiguration ( ) ;
18
14
OpenAPI . TOKEN = umbOpenApi . token ;
19
15
OpenAPI . BASE = umbOpenApi . base ;
20
16
OpenAPI . WITH_CREDENTIALS = true ;
21
17
} ) ;
22
-
23
18
} ;
You can’t perform that action at this time.
0 commit comments