We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 523db3b commit ab14839Copy full SHA for ab14839
src/lib/bluetooth.module.ts
@@ -4,6 +4,10 @@ import { CommonModule } from '@angular/common';
4
import { BluetoothCore } from './bluetooth.service';
5
import { BrowserWebBluetooth } from './platform/browser';
6
7
+export function browserWebBluetooth() {
8
+ return new BrowserWebBluetooth()
9
+};
10
+
11
@NgModule({
12
imports: [CommonModule]
13
})
@@ -15,10 +19,7 @@ export class WebBluetoothModule {
15
19
BluetoothCore,
16
20
{
17
21
provide: BrowserWebBluetooth,
18
- useFactory: () => {
- /** @TODO provide a server implementation */
- return new BrowserWebBluetooth();
- }
22
+ useFactory: browserWebBluetooth
23
},
24
]
25
};
0 commit comments