File tree 1 file changed +2
-3
lines changed
packages/integrations/src
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { Event , EventProcessor , Hub , Integration } from '@sentry/types' ;
2
2
import { getGlobalObject , logger , uuid4 } from '@sentry/utils' ;
3
- // @ts -ignore: Module '"localforage"' has no default export.
4
- import localforage from 'localforage' ;
3
+ import * as localForage from 'localforage' ;
5
4
6
5
/**
7
6
* cache offline errors and send when connected
@@ -43,7 +42,7 @@ export class Offline implements Integration {
43
42
public constructor ( options : { maxStoredEvents ?: number } = { } ) {
44
43
this . global = getGlobalObject < Window > ( ) ;
45
44
this . maxStoredEvents = options . maxStoredEvents || 30 ; // set a reasonable default
46
- this . offlineEventStore = localforage . createInstance ( {
45
+ this . offlineEventStore = localForage . createInstance ( {
47
46
name : 'sentry/offlineEventStore' ,
48
47
} ) ;
49
48
You can’t perform that action at this time.
0 commit comments