File: //usr/share/nodejs/turbolinks/src/turbolinks/script_warning.js
// Generated by CoffeeScript 1.12.8
(function() {
(function() {
var element, script;
if (!(element = script = document.currentScript)) {
return;
}
if (script.hasAttribute("data-turbolinks-suppress-warning")) {
return;
}
while (element = element.parentNode) {
if (element === document.body) {
return console.warn("You are loading Turbolinks from a <script> element inside the <body> element. This is probably not what you meant to do!\n\nLoad your application’s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.\n\nFor more information, see: https://github.com/turbolinks/turbolinks#working-with-script-elements\n\n——\nSuppress this warning by adding a `data-turbolinks-suppress-warning` attribute to: %s", script.outerHTML);
}
}
})();
}).call(this);