Skip to content

Commit b781a50

Browse files
committed
[fix] ts compilation problem
1 parent 55cbbfa commit b781a50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ export function getBackendFromLocalStorage() {
5454
}
5555

5656
export function getBackendFromWindow() {
57-
if (!window[GLOBAL_NAME]) {
57+
if (!(window as any)[GLOBAL_NAME]) {
5858
return null
5959
}
6060

61-
const backend = JSON.parse(window[GLOBAL_NAME])
61+
const backend = JSON.parse((window as any)[GLOBAL_NAME])
6262

6363
if (typeof backend !== 'object') {
6464
throw new Error(`Item found in global (${GLOBAL_NAME}) is malformed. Expected an object, found ${backend}`)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-plugin-kuzzle",
3-
"version": "4.3.0",
3+
"version": "4.3.1",
44
"description": "A Vuejs plugin shipping the Kuzzle SDK in your components",
55
"main": "index.js",
66
"types": "./index.d.ts",

0 commit comments

Comments
 (0)