Set icon based on window id, not name

This commit is contained in:
Richard 2021-05-18 11:36:48 +01:00
parent 9ba9bccd90
commit 3e0be6fa81

View file

@ -388,7 +388,7 @@ export default {
delete this.viewers.kaibu; delete this.viewers.kaibu;
}); });
this.setWindowIconUrl( this.setWindowIconUrl(
"Kaibu", this.viewers.kaibu.config.id,
"https://kaibu.org/static/img/kaibu-icon.svg" "https://kaibu.org/static/img/kaibu-icon.svg"
); );
this.viewers.kaibu.set_mode("full"); this.viewers.kaibu.set_mode("full");
@ -402,7 +402,7 @@ export default {
delete this.viewers.imagej; delete this.viewers.imagej;
}); });
this.setWindowIconUrl( this.setWindowIconUrl(
"ImageJ.JS", this.viewers.imagej.config.id,
"https://ij.imjoy.io/assets/icons/chrome/chrome-installprocess-128-128.png" "https://ij.imjoy.io/assets/icons/chrome/chrome-installprocess-128-128.png"
); );
// load the ITK/VTK viewer for imagej.js // load the ITK/VTK viewer for imagej.js