DEV: Remove old hbs-in-script warning (#17418)
7 years, I think that's long enough for people to notice? 😉
This commit is contained in:
parent
e62730a4c8
commit
3b4ed134ba
|
@ -1,19 +0,0 @@
|
|||
export default {
|
||||
name: "register-discourse-dom-templates",
|
||||
|
||||
initialize() {
|
||||
$('script[type="text/x-handlebars"]').each(function () {
|
||||
let $this = $(this);
|
||||
let name = $this.attr("name") || $this.data("template-name");
|
||||
|
||||
if (window.console) {
|
||||
window.console.log(
|
||||
"WARNING: you have a handlebars template named " +
|
||||
name +
|
||||
" this is an unsupported setup, precompile your templates"
|
||||
);
|
||||
}
|
||||
$this.remove();
|
||||
});
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue