Skip to content

Commit

Permalink
Reverse regression of sending tabs to windows through tab strip conte…
Browse files Browse the repository at this point in the history
…xt menu; fixes #205
  • Loading branch information
Bill13579 committed Sep 20, 2024
1 parent b3bba62 commit 7388e58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ExecutionState } from "../tapi/ping";
import { TSession } from "../tapi/tsession";
import { TTabActions } from "../tapi/taction";
import LZString from "lz-string";
import { TargetBrowser } from "../polyfill";

// import { TSession } from "tapi/tsession";

Expand Down Expand Up @@ -46,10 +47,12 @@ browser.contextMenus.onClicked.addListener((info, tab) => {
});
let updateContextMenu = async () => {
await browser.contextMenus.removeAll();
let contexts = ["audio", "editable", "frame", "image", "link", "page", "selection", "video"];
if (TargetBrowser === "firefox") contexts.push("tab");
await browser.contextMenus.create({
id: "tabby-send-tab-to-",
title: "Send Tab to...",
contexts: ["audio", "editable", "frame", "image", "link", "page", "selection", "video"],
contexts,
});
let windows = await browser.windows.getAll({
populate: false,
Expand Down

0 comments on commit 7388e58

Please sign in to comment.