Switch tab when opening with ImJoy

This commit is contained in:
Richard Bowman 2021-02-23 12:27:58 +00:00
parent 9b52865f95
commit 621b99eb9b

View file

@ -310,6 +310,7 @@ export default {
this.$store.commit("addOpenInImjoyMenuItem", {
title: "Kaibu",
async callback(name, imageUrl) {
self.$root.$emit("globalSwitchTab", "ImJoy");
if (!self.viewers.kaibu) {
await self.startKaibu();
}
@ -323,6 +324,7 @@ export default {
this.$store.commit("addOpenInImjoyMenuItem", {
title: "ImageJ.JS",
async callback(name, imageUrl) {
self.$root.$emit("globalSwitchTab", "ImJoy")
if (!self.viewers.imagej) {
await self.startImageJ();
}