Skip to content

Commit ab14839

Browse files
webmaxruWassim Chegham
authored and
Wassim Chegham
committed
chore(aot): function replaced with a reference to an exported function (#4)
1 parent 523db3b commit ab14839

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib/bluetooth.module.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { CommonModule } from '@angular/common';
44
import { BluetoothCore } from './bluetooth.service';
55
import { BrowserWebBluetooth } from './platform/browser';
66

7+
export function browserWebBluetooth() {
8+
return new BrowserWebBluetooth()
9+
};
10+
711
@NgModule({
812
imports: [CommonModule]
913
})
@@ -15,10 +19,7 @@ export class WebBluetoothModule {
1519
BluetoothCore,
1620
{
1721
provide: BrowserWebBluetooth,
18-
useFactory: () => {
19-
/** @TODO provide a server implementation */
20-
return new BrowserWebBluetooth();
21-
}
22+
useFactory: browserWebBluetooth
2223
},
2324
]
2425
};

0 commit comments

Comments
 (0)