Skip to content

Commit 917d43c

Browse files
committed
refactor: 增加返回值减少代码
1 parent 006baed commit 917d43c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/BootstrapBlazor/wwwroot/modules/utility.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ const deepMerge = (obj1, obj2, skipNull = true) => {
823823
export function registerBootstrapBlazorModule(name, module) {
824824
window.BootstrapBlazor ??= {};
825825
window.BootstrapBlazor[name] ??= deepMerge(window.BootstrapBlazor[name] ?? {}, module);
826+
return window.BootstrapBlazor[name];
826827
}
827828

828829
export function setTitle(title) {

0 commit comments

Comments
 (0)