File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/integrations/src Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ export class Offline implements Integration {
5151 this . offlineEventStore = localForage . createInstance ( {
5252 name : 'sentry/offlineEventStore' ,
5353 } ) ;
54+ }
55+
56+ /**
57+ * @inheritDoc
58+ */
59+ public setupOnce ( addGlobalEventProcessor : ( callback : EventProcessor ) => void , getCurrentHub : ( ) => Hub ) : void {
60+ this . hub = getCurrentHub ( ) ;
5461
5562 if ( 'addEventListener' in this . global ) {
5663 this . global . addEventListener ( 'online' , ( ) => {
@@ -59,13 +66,6 @@ export class Offline implements Integration {
5966 } ) ;
6067 } ) ;
6168 }
62- }
63-
64- /**
65- * @inheritDoc
66- */
67- public setupOnce ( addGlobalEventProcessor : ( callback : EventProcessor ) => void , getCurrentHub : ( ) => Hub ) : void {
68- this . hub = getCurrentHub ( ) ;
6969
7070 addGlobalEventProcessor ( ( event : Event ) => {
7171 if ( this . hub && this . hub . getIntegration ( Offline ) ) {
You can’t perform that action at this time.
0 commit comments