File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ export class NavigraphLogin extends DisplayComponent<NavigraphLoginProps> {
19
19
20
20
private cancelSource = CancelToken . source ( )
21
21
22
- private commBusListener : ViewListener . ViewListener
22
+ private commBusListener : CommBusListener
23
23
24
24
private wasmInitialized = false
25
25
26
26
constructor ( props : NavigraphLoginProps ) {
27
27
super ( props )
28
28
29
- this . commBusListener = RegisterViewListener ( "JS_LISTENER_COMM_BUS" , ( ) => {
30
- console . info ( "JS_LISTENER_COMM_BUS registered" )
29
+ this . commBusListener = RegisterCommBusListener ( ( ) => {
30
+ console . info ( "CommBus listener registered" )
31
31
} )
32
32
33
33
this . commBusListener . on ( "NAVIGRAPH_Heartbeat" , ( ) => {
@@ -137,8 +137,7 @@ export class NavigraphLogin extends DisplayComponent<NavigraphLoginProps> {
137
137
const url = pkg . file . url
138
138
// eslint-disable-next-line @typescript-eslint/no-floating-promises
139
139
if ( this . wasmInitialized ) {
140
- this . commBusListener . call (
141
- "COMM_BUS_WASM_CALLBACK" ,
140
+ this . commBusListener . callWasm (
142
141
"NAVIGRAPH_DownloadNavdata" ,
143
142
JSON . stringify ( {
144
143
url,
Original file line number Diff line number Diff line change 4
4
5
5
< link rel ="stylesheet " href ="MyInstrument.css " />
6
6
< script type ="text/html " import-script ="/JS/dataStorage.js "> </ script >
7
- < script
8
- type ="text/html "
9
- import-script ="/Pages/VCockpit/Instruments/Navigraph/NavdataInterfaceSample/MyInstrument.js "
10
- > </ script >
7
+ < script type ="text/html " import-script ="/JS/Services/CommBus.js "> </ script >
8
+ < script type ="text/html "import-script ="/Pages/VCockpit/Instruments/Navigraph/NavdataInterfaceSample/MyInstrument.js "> </ script >
You can’t perform that action at this time.
0 commit comments