mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 16:01:02 +08:00
Allow reopened widgets to use hbs
templates
This commit is contained in:
parent
132cbac600
commit
7df349afd6
|
@ -127,6 +127,10 @@ export function reopenWidget(name, opts) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (opts.template) {
|
||||
opts.html = opts.template;
|
||||
}
|
||||
|
||||
Object.keys(opts).forEach(k => existing.prototype[k] = opts[k]);
|
||||
return existing;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user