Compare commits
2 Commits
93c050c5ad
...
1e7a347c83
Author | SHA1 | Date | |
---|---|---|---|
1e7a347c83 | |||
e54a881088 |
@ -20,17 +20,6 @@ let { SetVersion, GoChangeRoute, GoSetStatus } = window as unknown as GoCallback
|
||||
|
||||
let w = window as unknown as GoCallback;
|
||||
|
||||
|
||||
|
||||
// var register = function <Type>(name: string): void {
|
||||
// const event = new CustomEvent<Type>(`${name}_Callback`, {
|
||||
// detail: value
|
||||
// })
|
||||
// document.dispatchEvent(event)
|
||||
// };
|
||||
|
||||
// w.SetVersion = register<string>('SetVersion')
|
||||
|
||||
(<GoCallback>(<unknown>window)).GoChangeRoute = function <T>(value: T): void {
|
||||
const event = new CustomEvent<T>('GoChangeRoute_Callback', {
|
||||
detail: value,
|
||||
|
Loading…
Reference in New Issue
Block a user