feat: context menu type

This commit is contained in:
Gabe Yuan
2024-02-05 11:28:34 +08:00
parent e74883e9c2
commit 3083d8e147
7 changed files with 82 additions and 70 deletions

View File

@@ -95,8 +95,8 @@ export default function Action({ translator, fab }) {
// 注册菜单
try {
const menuCommandIds = [];
const { contextMenus = true } = translator.setting;
contextMenus &&
const { contextMenuType } = translator.setting;
contextMenuType !== 0 &&
menuCommandIds.push(
GM.registerMenuCommand(
"Toggle Translate",