Access Add-on SDK module from the scratchpad

后端 未结 2 1114
刺人心
刺人心 2021-02-06 18:04

I\'d like to test small snippets of my add-on code using the scratchpad. In this case, I\'m trying to access the notifications module like so:

const { notify } =         


        
2条回答
  •  轮回少年
    2021-02-06 18:31

    At the moment there isn't a way to do this. A few things could happen to make this possible which people can watch/contribute:

    1. scratch-kit is updated
    2. native jetpack is completed and is integrated with itchpad (which should replace scratch kit). I made an example which I blogged about but it's not ready for release yet.

提交回复
热议问题