Skip to content

Commit

Permalink
remove MV3 choice for menu context type
Browse files Browse the repository at this point in the history
  • Loading branch information
jobisoft committed Apr 7, 2023
1 parent 3ff26f2 commit 804182f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
16 changes: 0 additions & 16 deletions menus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -628,22 +628,6 @@ OR
:name: :value:`browser_action`


OR

.. api-header::
:label: `string`


.. container:: api-member-node

.. container:: api-member-description-only

Supported values:

.. api-member::
:name: :value:`action`


.. _menus.ItemType:

ItemType
Expand Down
4 changes: 4 additions & 0 deletions update-docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,10 @@ def format_namespace(manifest, namespace):
elif "choices" in type_:
first = True
for choice in type_["choices"]:
if "min_manifest_version" in choice and choice["min_manifest_version"] > MV:
continue
if "max_manifest_version" in choice and choice["max_manifest_version"] < MV:
continue
if first:
first = False
else:
Expand Down

0 comments on commit 804182f

Please sign in to comment.