I would like to test small fragments of my additional code with notepad. In this case, I am trying to access the notification module as follows:
const { notify } = require("sdk/notifications");
notify({
});
As expected, I get an error Exception: require is not defined. Since the Add-on SDK is packaged with Firefox, I wonder if there is a way to access the modules directly from Notepad. Thanks.
Edit: after some Googling, I discovered a scratch-kit (github) , an add-on that does exactly what I'm trying to do. But unfortunately broken , so I filed an error in the hope that this functionality will be added to devtools.
source
share