@@ -60,7 +60,6 @@ export const use_viewer_store = defineStore("viewer", {
60
60
if ( process . env . NODE_ENV == "test" ) return
61
61
if ( this . status === Status . CONNECTED ) return
62
62
navigator . locks . request ( "viewer.ws_connect" , async ( lock ) => {
63
- console . log ( "VIEWER STATUS" , this . status )
64
63
if ( this . status === Status . CONNECTED ) return
65
64
console . log ( "VIEWER LOCK GRANTED !" , lock )
66
65
this . status = Status . CONNECTING
@@ -71,18 +70,12 @@ export const use_viewer_store = defineStore("viewer", {
71
70
config . sessionURL = this . base_url
72
71
73
72
const { client } = this
74
- console . log ( "client" , client )
75
- console . log ( "status" , this . status )
76
73
if ( this . status === Status . CONNECTED && client . isConnected ( ) ) {
77
- console . log ( "disconnect" )
78
-
79
74
client . disconnect ( - 1 )
80
75
this . status = Status . NOT_CONNECTED
81
76
}
82
77
let clientToConnect = client
83
78
if ( _ . isEmpty ( clientToConnect ) ) {
84
- console . log ( "isEmpty" )
85
-
86
79
clientToConnect = vtkWSLinkClient . newInstance ( )
87
80
}
88
81
@@ -112,13 +105,11 @@ export const use_viewer_store = defineStore("viewer", {
112
105
const { connectImageStream } = await import (
113
106
"@kitware/vtk.js/Rendering/Misc/RemoteView"
114
107
)
115
- console . log ( "before connect" )
116
108
const viewer_store = this
117
109
return new Promise ( ( resolve , reject ) => {
118
110
clientToConnect
119
111
. connect ( config )
120
112
. then ( ( validClient ) => {
121
- console . log ( "validClient" , validClient )
122
113
connectImageStream ( validClient . getConnection ( ) . getSession ( ) )
123
114
viewer_store . client = validClient
124
115
clientToConnect . endBusy ( )
0 commit comments