mirror of
https://github.com/Ximi1970/systray-x.git
synced 2025-11-01 19:05:48 +01:00
Remove old code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/// This is the important part. It implements the functions and events defined in schema.json.
|
||||
// This is the important part. It implements the functions and events defined in schema.json.
|
||||
// The variable must have the same name you've been using so far, "myapi" in this case.
|
||||
var windowEvent = class extends ExtensionCommon.ExtensionAPI {
|
||||
getAPI(context) {
|
||||
@@ -41,12 +41,6 @@ var windowEvent = class extends ExtensionCommon.ExtensionAPI {
|
||||
// This function is called if the extension is disabled or removed, or Thunderbird closes.
|
||||
// We registered it with callOnClose, above.
|
||||
console.log("windowEvent API closed");
|
||||
|
||||
// Unload the JSM we imported above. This will cause Thunderbird to forget about the JSM, and
|
||||
// load it afresh next time `import` is called. (If you don't call `unload`, Thunderbird will
|
||||
// remember this version of the module and continue to use it, even if your extension receives
|
||||
// an update.) You should *always* unload JSMs provided by your extension.
|
||||
Cu.unload(extension.getURL("modules/windowEvent.jsm"));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user