Hi,
i have a simple pagemod which applies on every domain:
var list = [];
var p = require("sdk/page-mod");
var pm = p.PageMod({include:"*", exclude:list, ... });
i created a context menu item where i add current domain to the exclude list and then i destroy the pagemod with pm.destroy(); and want to create it again, but that doesn’t work.
how can i instantly apply my updated exclude list?