Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Error loading external js library

$
0
0

@djmaxisauce wrote:

Hi,

Im including the google cast external javascript library. When I run with ionic serve it works good, but when I run the app in the phone, the library is not loaded. Debugging can see that :

The "http" is replaced by "file"!
I tried to include the libraries with that code:

script src="//www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"></script
script src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"></script
script src="http://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"></script

and with type="text/javascript" added; but all codes replaces http by file, and the library is not loaded.

Any suggestions?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>