Skip to content

Commit

Permalink
Adjust repository layout for NotificationBox
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Aug 7, 2024
1 parent 48d91f5 commit 3ff9a74
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions NotificationBox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
},
"experiment_apis": {
"NotificationBox": {
"schema": "NotificationBox/schema.json",
"schema": "experiments/NotificationBox/schema/notification-box.json",
"parent": {
"scopes": ["addon_parent"],
"paths": [["NotificationBox"]],
"script": "NotificationBox/implementation.js"
"script": "experiments/NotificationBox/parent/ext-notification-box.js"
}
}
}
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@ official [communication channels](https://developer.thunderbird.net/add-ons/comm
to tell you more about how they work, and engage in some ad-hoc discussion on how to design WebExtension
APIs.

Using experiments in your add-ons
---------------------------------

The repository layout is conveniently written so you can collect the experiments in a subdirectory of your add-on.

```
mkdir -p my_addon_directory/experiments
cp -R webext-experiments/calendar/experiments/ my_addon_directory/experiments
```

Now copy the respective `experiment_apis` entries in e.g. `calendar/manifest.json` to your add-on's manifest.json.


Migrating from Legacy Add-ons
-----------------------------
If you are migrating your legacy add-on to WebExtensions, you may need to rethink how your UI is
Expand Down

0 comments on commit 3ff9a74

Please sign in to comment.