Thanks Michael .Will try this.
So, there is no need to include the related js file to use that Method ?
Hope it works.

Thanks

On Mon, Nov 9, 2015 at 4:43 PM, Michael Henretty <[email protected]>
wrote:

> 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
>>
>>
>


-- 
Kumar Rishav
Mozilla Representative - ReMo Mozilla Reps
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to