vigetlabs/craft-videoembed

Base.js error

kaspar-allenbach opened this issue · 1 comments

Hi. I have the following error in the console:

bildschirmfoto 2017-02-06 um 15 02 42

These two lines in base.js trigger the warning:

Wna = function(a) {
        var b = ""
          , c = a.$.assets.js || "";
        0 == c.indexOf("//") && (c = a.W.ga + ":" + c);
        window.console.warn(window.location.host);
        window.console.warn(c); // this seems to trigger the warning.
        "/base.js" == c.substr(-8) && (b = c.substr(0, c.length - 8) + "/");
        b = new pz(a.g,b);
        c = {};
        c.loaded = (0,
        g.z)(a.Bv, a);
        c.unloaded = (0,
        g.z)(a.Cv, a);
        c.destroyed = (0,
        g.z)(a.No, a);
        b.ba = c;
        return b
    }

My code is just this:

{% set video = craft.embedder.url(entry.youtubeLink, {max_width:500, max_height:800, youtube_showinfo:0}) %}
  <div class="embed-responsive embed-responsive-16by9">{{ video.embed_code }}</div>
  <h3 class="videoTitle">{{ video.video_title }}</h3>

All is working fine, I just wonder where these warnings come from.

Those warnings appear to just be coming from the YouTube JS, which aren't anything that can be controlled in this plugin.