Hi Kumar, I believe you can, but you need to used wrappedJSObject. Try
this, in your script which is injected into a hosted page:
```
window.wrappedJSObject.SomeGlocalObject.methodIWantToCall(....);
```

On Sun, Nov 8, 2015 at 3:53 PM, Kumar Rishav <[email protected]> wrote:

> Hi,
> Can add-on access the methods (not api) of hosted app?
>
> I tried to add the js files (of hosted app which has those method) to
> contents_ script. But it's not working.
>
> Anyway to access those methods.
>
> Thanks
>
> _______________________________________________
> dev-fxos mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-fxos
>
>
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to