mirror of
https://github.com/discourse/discourse.git
synced 2025-02-28 03:34:25 +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…
x
Reference in New Issue
Block a user