21 lines
636 B
TypeScript
21 lines
636 B
TypeScript
import './lib/text-encoder'
|
|
|
|
declare const lynxCoreInject: { tt?: Record<string, any> } | undefined
|
|
|
|
// The LynxExplorer SDK calls tt.callDestroyLifetimeFun() when destroying a
|
|
// card. vue-lynx's runtime does not define it, which throws during page
|
|
// teardown and can break subsequent loads. Provide the expected no-op hook.
|
|
if (typeof lynxCoreInject !== 'undefined' && lynxCoreInject?.tt) {
|
|
const tt = lynxCoreInject.tt
|
|
if (typeof tt.callDestroyLifetimeFun !== 'function') {
|
|
tt.callDestroyLifetimeFun = () => {}
|
|
}
|
|
}
|
|
|
|
import { createApp } from 'vue-lynx'
|
|
|
|
import App from './App.vue'
|
|
|
|
const app = createApp(App)
|
|
app.mount()
|