mike-zarandona/PrettyEmbed.js — pull request #23 by iturralde (2014-08-28 16:16:26+00:00)
Title: Use https protocol on hybrid apps instead of file protocol

Hi Mike,

I found that PrettyEmbed.js doesn't work on hybrid apps created using Cordova.

Hybrid apps created with Cordova use the file protocol and that causes problems with protocol relative URLs used by PrettyEmbed.js. You get URLs like these:

file://img.youtube.com/vi/...
file://www.youtube.com/embed/...

I solved the problem checking what protocol is used and adding "https:" to the URLs when the file protocol is used.

Best regards