Compare commits

..

2 Commits

Author SHA1 Message Date
1e7a347c83 Merge remote-tracking branch 'origin/main' 2022-11-23 03:53:21 +03:00
e54a881088 delete commented old code 2022-11-23 03:53:15 +03:00

View File

@ -20,17 +20,6 @@ let { SetVersion, GoChangeRoute, GoSetStatus } = window as unknown as GoCallback
let w = 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 { (<GoCallback>(<unknown>window)).GoChangeRoute = function <T>(value: T): void {
const event = new CustomEvent<T>('GoChangeRoute_Callback', { const event = new CustomEvent<T>('GoChangeRoute_Callback', {
detail: value, detail: value,