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:
Jarek Radosz 2022-07-11 11:42:40 +02:00 committed by GitHub
parent e62730a4c8
commit 3b4ed134ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 19 deletions

View File

@ -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();
});
},
};