I'm trying to copy some stuff from a frame script, so I do:

let clipboard = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
                         .getService(Components.interfaces.nsIClipboardHelper);

But it throws

TypeError: Components.classes['@mozilla.org/widget/clipboardhelper;1'] is 
undefined

So I think something is not loaded, anyone any idea what?
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to