/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-cli-inspectlet',

  contentFor: function(type, config) {
    var wid = config.APP.INSPECTLET_WID;

    if (wid != null && type === 'head') {
      return "<script>\n" +
        "window.__insp = window.__insp || [];\n" +
        "__insp.push(['wid', " + wid + "]);\n" +
        "(function() {\n" +
        "function ldinsp(){if(typeof window.__inspld != 'undefined') return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; insp.id = 'inspsync'; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x); };\n" +
        " setTimeout(ldinsp, 500); document.readyState != 'complete' ? (window.attachEvent ? window.attachEvent('onload', ldinsp) : window.addEventListener('load', ldinsp, false)) : ldinsp();\n" +
        "})();" +
        "</script>"
    }
  }
};

/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-cli-inspectlet',

  contentFor: function(type, config) {
    var wid = config.APP.INSPECTLET_WID;

    if (wid != null && type === 'head') {
      return "<script type='text/javascript' id='inspectletjs'>\n" +
        "window.__insp = window.__insp || [];\n" +
        "__insp.push(['wid', " + wid + "]);\n" +
        "(function() {\n" +
        "function ldinsp(){if(typeof window.__inspld != 'undefined') return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; insp.id = 'inspsync'; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x); };\n" +
        " setTimeout(ldinsp, 500); document.readyState != 'complete' ? (window.attachEvent ? window.attachEvent('onload', ldinsp) : window.addEventListener('load', ldinsp, false)) : ldinsp();\n" +
        "})();" +
        "</script>"
    }
  }
};

Add type and id to script tag
Add type and id to script tag

The current script tag recommended by inspectlet contains an ID and the type specified.

I don't think it makes too much difference but I think it is interesting to keep the script tag as close as possible of what is recommended by inspectlet =D