Skip to content

Commit

Permalink
feat(manifest): fixed v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Jan 30, 2023
1 parent 2397689 commit 342bf07
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pack-ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ def zipdir(path, name, browser):
# change parameters
data['background']['service_worker'] = data['background']['scripts'][0]
del data['background']['scripts']
data['web_accessible_resources'] = {
'resources': data['web_accessible_resources'],
'matches': ["https://translate.wordpress.org/*"]
}
print(data)
data['web_accessible_resources'] = [
{
'resources': data['web_accessible_resources'],
'matches': ["https://translate.wordpress.org/*"]
}
]
data['manifest_version'] = 3

with open(manifest, 'w') as new_manifest:
Expand Down

0 comments on commit 342bf07

Please sign in to comment.