Skip to content

Commit 43fedda

Browse files
cleanup log
1 parent de18f6c commit 43fedda

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

stores/viewer.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export const use_viewer_store = defineStore("viewer", {
6060
if (process.env.NODE_ENV == "test") return
6161
if (this.status === Status.CONNECTED) return
6262
navigator.locks.request("viewer.ws_connect", async (lock) => {
63-
console.log("VIEWER STATUS", this.status)
6463
if (this.status === Status.CONNECTED) return
6564
console.log("VIEWER LOCK GRANTED !", lock)
6665
this.status = Status.CONNECTING
@@ -71,18 +70,12 @@ export const use_viewer_store = defineStore("viewer", {
7170
config.sessionURL = this.base_url
7271

7372
const { client } = this
74-
console.log("client", client)
75-
console.log("status", this.status)
7673
if (this.status === Status.CONNECTED && client.isConnected()) {
77-
console.log("disconnect")
78-
7974
client.disconnect(-1)
8075
this.status = Status.NOT_CONNECTED
8176
}
8277
let clientToConnect = client
8378
if (_.isEmpty(clientToConnect)) {
84-
console.log("isEmpty")
85-
8679
clientToConnect = vtkWSLinkClient.newInstance()
8780
}
8881

@@ -112,13 +105,11 @@ export const use_viewer_store = defineStore("viewer", {
112105
const { connectImageStream } = await import(
113106
"@kitware/vtk.js/Rendering/Misc/RemoteView"
114107
)
115-
console.log("before connect")
116108
const viewer_store = this
117109
return new Promise((resolve, reject) => {
118110
clientToConnect
119111
.connect(config)
120112
.then((validClient) => {
121-
console.log("validClient", validClient)
122113
connectImageStream(validClient.getConnection().getSession())
123114
viewer_store.client = validClient
124115
clientToConnect.endBusy()

0 commit comments

Comments
 (0)