delete commented old code

This commit is contained in:
cyber-dream 2022-11-23 03:53:15 +03:00
parent 9384bd86e2
commit e54a881088

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,