How can I add a recurring timer to a Firefox addon?

前端 未结 3 1074
南方客
南方客 2021-01-06 05:37

I am trying to create an addon with the new addons builder preview (https://builder.addons.mozilla.org/), and I need a function to run about once every 10 minutes. I have tr

3条回答
  •  自闭症患者
    2021-01-06 06:26

    please note that the above is deprecated

    var tmr = require('sdk/timers');
    

    is now used instead

提交回复
热议问题